diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/db.rs | 2 | ||||
-rw-r--r-- | src/routes.rs | 6 |
2 files changed, 2 insertions, 6 deletions
@@ -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 |
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()) |