aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes.rs
diff options
context:
space:
mode:
authorYigit Sever2022-04-17 01:50:16 +0300
committerYigit Sever2022-04-17 01:50:16 +0300
commitb7bd1c0a4d4903c54a2f6bd758737f613d216d70 (patch)
treec985b4908d72f77e71b96ca23ffbef3b12279c4a /src/routes.rs
parent74274ec07103c5fbc2fd176cd39ad0753b6f4083 (diff)
downloadgradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.tar.gz
gradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.tar.bz2
gradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.zip
Improve comments
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())