mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-11 06:03:57 +00:00
add api_not_found catcher for 404 errors in /api
This commit is contained in:
parent
acb5ab08a8
commit
102ee3f871
3 changed files with 18 additions and 0 deletions
|
@ -426,6 +426,7 @@ async fn launch_rocket(pool: db::DbPool, extra_debug: bool) -> Result<(), Error>
|
|||
.mount([basepath, "/icons"].concat(), api::icons_routes())
|
||||
.mount([basepath, "/notifications"].concat(), api::notifications_routes())
|
||||
.register([basepath, "/"].concat(), api::web_catchers())
|
||||
.register([basepath, "/api"].concat(), api::core_catchers())
|
||||
.manage(pool)
|
||||
.manage(api::start_notification_server())
|
||||
.attach(util::AppHeaders())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue