1
Fork 0
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:
RGBCube 2023-12-20 22:16:54 +03:00
parent 389ca1f737
commit 9336ad99b0
No known key found for this signature in database

View file

@ -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