aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes.rs')
-rw-r--r--src/routes.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/routes.rs b/src/routes.rs
index e3322ad..4dd22bc 100644
--- a/src/routes.rs
+++ b/src/routes.rs
@@ -7,11 +7,7 @@ use crate::Db;
7 7
8/// Every route combined 8/// Every route combined
9pub fn application(db: Db) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone { 9pub fn application(db: Db) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone {
10 // Remember when we wanted to implement templating 10 // gradecoin-site (zola) outputs a public/, we serve it here
11 // Why would we? Just put a staic webpage under /public (next to Cargo.toml) and place it and
12 // the end of the filter chain
13
14 // Fully fledged website support, phew!
15 let static_route = warp::any().and(warp::fs::dir("public")); 11 let static_route = warp::any().and(warp::fs::dir("public"));
16 12
17 transaction_list(db.clone()) 13 transaction_list(db.clone())