B:BD[
4.912] → [
6.151:234]
∅:D[
6.234] → [
4.912:1279]
B:BD[
4.912] → [
4.912:1279]
B:BD[
4.1279] → [
7.1155:1209]
.service(web::resource("/login.do").route(web::post().to(login_post)))
// Serve a tree of static files at the web root and specify the index file.
// Note that the root path should always be defined as the last item. The paths are
// resolved in the order they are defined. If this would be placed before the `/images`
// path then the service for the static images would never be reached.
.service(Files::new("/static/", &public))
.service(web::resource("/login.do").route(web::post().to(login_post)));
// Serve a tree of static files at the web root and specify the index file.
// Note that the root path should always be defined as the last item. The paths are
// resolved in the order they are defined. If this would be placed before the `/images`
// path then the service for the static images would never be reached.
#[cfg(feature = "actix-files")]
let app = app.service(Files::new("/static/", &public));
app