diff options
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/server.rs b/src/server.rs index 4af8c83..404c3b2 100644 --- a/src/server.rs +++ b/src/server.rs @@ -34,15 +34,6 @@ fn make_renderer() -> HandlebarsEngine { e } -fn info(_r: &mut Request) -> IronResult<Response> { - let data = data::make_data(); - Ok(Response::with(( - status::Ok, - Header(ContentType::html()), - Template::new("quotes", data), - ))) -} - fn quotes(r: &mut Request) -> IronResult<Response> { let mut result = Map::new(); let quotes = { @@ -61,7 +52,6 @@ fn quotes(r: &mut Request) -> IronResult<Response> { pub fn serve(state: State, port: u16) { let router = router!( - info: get "/info" => info, index: get "/" => quotes, ); let mut chain = Chain::new(router); |