forked from Ruderverein-Donau-Linz/rowt
		
	add fileserver
This commit is contained in:
		@@ -1,6 +1,8 @@
 | 
			
		||||
use chrono::{Datelike, Duration, Local, NaiveDate};
 | 
			
		||||
use rocket::{
 | 
			
		||||
    catch, catchers, get,
 | 
			
		||||
    catch, catchers,
 | 
			
		||||
    fs::FileServer,
 | 
			
		||||
    get,
 | 
			
		||||
    request::FlashMessage,
 | 
			
		||||
    response::{Flash, Redirect},
 | 
			
		||||
    routes, Build, Rocket, State,
 | 
			
		||||
@@ -75,6 +77,7 @@ pub fn start(db: SqlitePool) -> Rocket<Build> {
 | 
			
		||||
        .mount("/auth", auth::routes())
 | 
			
		||||
        .mount("/cox", cox::routes())
 | 
			
		||||
        .mount("/admin", admin::routes())
 | 
			
		||||
        .mount("/public", FileServer::from("static/"))
 | 
			
		||||
        .register("/", catchers![unauthorized_error])
 | 
			
		||||
        .attach(Template::fairing())
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user