mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-07 23:27:51 +00:00
Unknown path error handling
This commit is contained in:
parent
b8cdc605a2
commit
ef1ad17234
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ async fn main() -> std::io::Result<()> {
|
|||
// TRAILING SLASH MIDDLEWARE
|
||||
.wrap(NormalizePath::default())
|
||||
// DEFAULT SERVICE
|
||||
.default_service(web::get().to(utils::error))
|
||||
.default_service(web::get().to(|| utils::error("Nothing here".to_string())))
|
||||
// GENERAL SERVICES
|
||||
.route("/style.css/", web::get().to(style))
|
||||
.route("/favicon.ico/", web::get().to(HttpResponse::Ok))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue