testserve

This commit is contained in:
notplants 2022-07-18 14:42:52 +02:00
parent 6407495292
commit b503fca8ce

View File

@ -18,6 +18,9 @@ use crate::{
/// by querying the `session_data`. If the user is authenticated, pass their /// by querying the `session_data`. If the user is authenticated, pass their
/// request to the private router. Otherwise, redirect them to the login page. /// request to the private router. Otherwise, redirect them to the login page.
pub fn handle_route(request: &Request, session_data: &mut Option<SessionData>) -> Response { pub fn handle_route(request: &Request, session_data: &mut Option<SessionData>) -> Response {
return Response::html("this is running");
// static file server // static file server
// matches on assets in the `static` directory // matches on assets in the `static` directory
let static_response = rouille::match_assets(request, "static"); let static_response = rouille::match_assets(request, "static");