add Shield to remove warning

This commit is contained in:
fabolous005 2024-12-03 08:47:55 +01:00
parent f13954efab
commit 717e92b506

View File

@ -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())
}