diff options
author | Yigit Sever | 2022-04-17 01:50:16 +0300 |
---|---|---|
committer | Yigit Sever | 2022-04-17 01:50:16 +0300 |
commit | b7bd1c0a4d4903c54a2f6bd758737f613d216d70 (patch) | |
tree | c985b4908d72f77e71b96ca23ffbef3b12279c4a /src/routes.rs | |
parent | 74274ec07103c5fbc2fd176cd39ad0753b6f4083 (diff) | |
download | gradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.tar.gz gradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.tar.bz2 gradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.zip |
Improve comments
Diffstat (limited to 'src/routes.rs')
-rw-r--r-- | src/routes.rs | 6 |
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 |
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 | // 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()) |