Removed static files route handlers as they'll never be used

added auth route
This commit is contained in:
shockrah 2020-05-06 22:22:40 -07:00
parent 281b734073
commit 55a09b5e98

View File

@ -12,7 +12,6 @@ extern crate rand;
extern crate getrandom;
use rocket_contrib::serve::StaticFiles;
use rocket_contrib::templates::Template;
use dotenv::dotenv;
use std::env::var;
@ -36,7 +35,6 @@ pub struct DBConn(diesel::MysqlConnection);
pub fn rocket() -> rocket::Rocket {
rocket::ignite()
.mount("/static", StaticFiles::from("/static"))
.mount("/invite", routes![
generate_invite, use_invite
])
@ -46,6 +44,9 @@ pub fn rocket() -> rocket::Rocket {
.mount("/users", routes![
remove_user, get_user_list
])
.mount("/auth", routes![
auth::leave
])
.attach(Template::fairing())
.attach(DBConn::fairing())
}