add not_found catcher for 404 errors

This commit is contained in:
Stefan Melmuk
2022-09-25 04:02:16 +02:00
parent 9c891baad1
commit acb5ab08a8
3 changed files with 16 additions and 1 deletions

View File

@ -425,6 +425,7 @@ async fn launch_rocket(pool: db::DbPool, extra_debug: bool) -> Result<(), Error>
.mount([basepath, "/identity"].concat(), api::identity_routes())
.mount([basepath, "/icons"].concat(), api::icons_routes())
.mount([basepath, "/notifications"].concat(), api::notifications_routes())
.register([basepath, "/"].concat(), api::web_catchers())
.manage(pool)
.manage(api::start_notification_server())
.attach(util::AppHeaders())