aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parent74274ec07103c5fbc2fd176cd39ad0753b6f4083 (diff)
downloadgradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.tar.gz
gradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.tar.bz2
gradecoin-b7bd1c0a4d4903c54a2f6bd758737f613d216d70.zip
Improve comments
Diffstat (limited to 'src')
-rw-r--r--src/db.rs2
-rw-r--r--src/routes.rs6
2 files changed, 2 insertions, 6 deletions
diff --git a/src/db.rs b/src/db.rs
index f2921f8..a00def5 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -178,7 +178,7 @@ fn read_approved_users() -> Vec<MetuId> {
178 panic!( 178 panic!(
179 "{}", 179 "{}",
180 format!( 180 format!(
181 "Expected {} to load preapproved students", 181 "Expected {} in place to load preapproved students",
182 PREAPPROVED_STU_FILENAME 182 PREAPPROVED_STU_FILENAME
183 ) 183 )
184 ) 184 )
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())