From 72b689bba80c372ba5e33d2b425ca31a1e6ddc9e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 17 Apr 2022 02:46:29 +0300 Subject: Remove 404 support --- src/routes.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/routes.rs') 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}; pub fn application(db: Db) -> impl Filter + Clone { // gradecoin-site (zola) outputs a public/, we serve it here let static_route = warp::any().and(warp::fs::dir("public")); - let error_page = warp::any().and(warp::fs::file("public/404.html")); transaction_list(db.clone()) .or(register_user(db.clone())) @@ -18,7 +17,6 @@ pub fn application(db: Db) -> impl Filter