mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-05 15:41:05 +08:00
Return 404 if not route matched
This commit is contained in:
@@ -48,9 +48,12 @@ impl Service<Request<Body>> for PixivDownloaderSvc {
|
||||
}
|
||||
}
|
||||
}),
|
||||
None => {
|
||||
Box::pin(async { Ok(Response::builder().body(Body::from("hello world")).unwrap()) })
|
||||
}
|
||||
None => Box::pin(async {
|
||||
Ok(Response::builder()
|
||||
.status(404)
|
||||
.body(Body::from("404 Not Found"))
|
||||
.unwrap())
|
||||
}),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user