diff options
author | Yigit Sever | 2022-04-11 19:01:42 +0300 |
---|---|---|
committer | Yigit Sever | 2022-04-11 19:01:42 +0300 |
commit | 426e83ec6fba028692bed334803ae9d3a645cb18 (patch) | |
tree | a92c2d62f54e28493d1d3b3ddfc185c1ed5cf4a5 /src/routes.rs | |
parent | 04c3b4597a995d73e6925c5391bfa27d27f298b7 (diff) | |
download | gradecoin-426e83ec6fba028692bed334803ae9d3a645cb18.tar.gz gradecoin-426e83ec6fba028692bed334803ae9d3a645cb18.tar.bz2 gradecoin-426e83ec6fba028692bed334803ae9d3a645cb18.zip |
[WIP] Spring cleaning
Diffstat (limited to 'src/routes.rs')
-rw-r--r-- | src/routes.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/routes.rs b/src/routes.rs index f39e98a..e3322ad 100644 --- a/src/routes.rs +++ b/src/routes.rs | |||
@@ -1,12 +1,12 @@ | |||
1 | /// Endpoints and their construction | 1 | //! # Endpoints and their construction |
2 | // | ||
2 | use warp::{Filter, Rejection, Reply}; | 3 | use warp::{Filter, Rejection, Reply}; |
3 | |||
4 | use crate::custom_filters; | 4 | use crate::custom_filters; |
5 | use crate::handlers; | 5 | use crate::handlers; |
6 | use crate::schema::Db; | 6 | use crate::Db; |
7 | 7 | ||
8 | /// Every route combined | 8 | /// Every route combined |
9 | pub fn consensus_routes(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 | // Remember when we wanted to implement templating |
11 | // Why would we? Just put a staic webpage under /public (next to Cargo.toml) and place it and | 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 | 12 | // the end of the filter chain |