From 426e83ec6fba028692bed334803ae9d3a645cb18 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 11 Apr 2022 19:01:42 +0300 Subject: [WIP] Spring cleaning --- src/routes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/routes.rs') 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 @@ -/// Endpoints and their construction +//! # Endpoints and their construction +// use warp::{Filter, Rejection, Reply}; - use crate::custom_filters; use crate::handlers; -use crate::schema::Db; +use crate::Db; /// Every route combined -pub fn consensus_routes(db: Db) -> impl Filter + Clone { +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 -- cgit v1.2.3-70-g09d2