From b7bd1c0a4d4903c54a2f6bd758737f613d216d70 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 17 Apr 2022 01:50:16 +0300 Subject: Improve comments --- src/db.rs | 2 +- src/routes.rs | 6 +----- 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 { panic!( "{}", format!( - "Expected {} to load preapproved students", + "Expected {} in place to load preapproved students", PREAPPROVED_STU_FILENAME ) ) 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; /// Every route combined pub fn application(db: Db) -> impl Filter + Clone { - // Remember when we wanted to implement templating - // Why would we? Just put a staic webpage under /public (next to Cargo.toml) and place it and - // the end of the filter chain - - // Fully fledged website support, phew! + // gradecoin-site (zola) outputs a public/, we serve it here let static_route = warp::any().and(warp::fs::dir("public")); transaction_list(db.clone()) -- cgit v1.2.3-70-g09d2