diff options
| author | Yigit Sever | 2022-04-17 02:46:29 +0300 |
|---|---|---|
| committer | Yigit Sever | 2022-04-17 02:46:29 +0300 |
| commit | 72b689bba80c372ba5e33d2b425ca31a1e6ddc9e (patch) | |
| tree | 6525533c3d7dc250ba432f99f2ffe2800297a6a9 /src/routes.rs | |
| parent | c845a4679c492fe61744d7b54e64ff78fb8beb93 (diff) | |
| download | gradecoin-72b689bba80c372ba5e33d2b425ca31a1e6ddc9e.tar.gz gradecoin-72b689bba80c372ba5e33d2b425ca31a1e6ddc9e.tar.bz2 gradecoin-72b689bba80c372ba5e33d2b425ca31a1e6ddc9e.zip | |
Remove 404 support
Diffstat (limited to 'src/routes.rs')
| -rw-r--r-- | src/routes.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/routes.rs b/src/routes.rs index c0ccd26..cdbfc08 100644 --- a/src/routes.rs +++ b/src/routes.rs | |||
| @@ -9,7 +9,6 @@ use warp::{Filter, Rejection, Reply}; | |||
| 9 | pub fn application(db: Db) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone { | 9 | pub fn application(db: Db) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone { |
| 10 | // gradecoin-site (zola) outputs a public/, we serve it here | 10 | // gradecoin-site (zola) outputs a public/, we serve it here |
| 11 | let static_route = warp::any().and(warp::fs::dir("public")); | 11 | let static_route = warp::any().and(warp::fs::dir("public")); |
| 12 | let error_page = warp::any().and(warp::fs::file("public/404.html")); | ||
| 13 | 12 | ||
| 14 | transaction_list(db.clone()) | 13 | transaction_list(db.clone()) |
| 15 | .or(register_user(db.clone())) | 14 | .or(register_user(db.clone())) |
| @@ -18,7 +17,6 @@ pub fn application(db: Db) -> impl Filter<Extract = impl Reply, Error = Rejectio | |||
| 18 | .or(list_users(db.clone())) | 17 | .or(list_users(db.clone())) |
| 19 | .or(block_list(db)) | 18 | .or(block_list(db)) |
| 20 | .or(static_route) | 19 | .or(static_route) |
| 21 | .or(error_page) | ||
| 22 | } | 20 | } |
| 23 | 21 | ||
| 24 | /// GET /user warp route | 22 | /// GET /user warp route |
