mirror of
https://github.com/RGBCube/rgbcube.github.io
synced 2025-05-14 05:54:58 +00:00
Use 404 handler
This commit is contained in:
parent
389ca1f737
commit
9336ad99b0
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ async fn main() -> anyhow::Result<()> {
|
|||
.target(Target::Stdout)
|
||||
.init();
|
||||
|
||||
let app = Router::new().route("/", get(pages::index));
|
||||
let app = Router::new()
|
||||
.route("/", get(pages::index))
|
||||
.fallback(pages::_404);
|
||||
|
||||
let listener = TcpListener::bind("0.0.0.0:80")
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue