Implement styling
This commit is contained in:
parent
25906df967
commit
ccba51e277
7 changed files with 151 additions and 3 deletions
|
@ -2,8 +2,10 @@
|
|||
extern crate rocket;
|
||||
|
||||
use core::panic;
|
||||
use rocket::fs::{FileServer, relative};
|
||||
use rocket_dyn_templates::{context, Template};
|
||||
use std::fs;
|
||||
use sass_rocket_fairing::SassFairing;
|
||||
|
||||
mod challenge;
|
||||
use challenge::Challenge;
|
||||
|
@ -52,5 +54,7 @@ fn rocket() -> _ {
|
|||
let config = rocket::Config::figment().merge(("port", 1313));
|
||||
rocket::custom(config)
|
||||
.mount("/", routes![get_challenge])
|
||||
.mount("/css", FileServer::from(relative!("styles/css")))
|
||||
.attach(Template::fairing())
|
||||
.attach(SassFairing::default())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue