add Shield to remove warning
This commit is contained in:
parent
f13954efab
commit
717e92b506
@ -3,6 +3,7 @@
|
||||
use rocket::form::Form;
|
||||
use rocket_dyn_templates::{Template, context};
|
||||
use rocket::fs::FileServer;
|
||||
use rocket::shield::Shield;
|
||||
use std::net::{IpAddr, Ipv4Addr};
|
||||
|
||||
|
||||
@ -53,6 +54,7 @@ fn rocket() -> _ {
|
||||
rocket::build()
|
||||
.mount("/", routes![index, login])
|
||||
.mount("/static", FileServer::from("static")) // Serves files in the `static` directory
|
||||
.attach(Shield::new())
|
||||
.attach(Template::fairing())
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user