Serve static files with default
This commit is contained in:
parent
bd6bffeafb
commit
237eb52ff4
@ -140,7 +140,7 @@ fn main() -> Result<()> {
|
|||||||
web::get().to_async(handle_request::<GitLab>),
|
web::get().to_async(handle_request::<GitLab>),
|
||||||
)
|
)
|
||||||
.route("/gitlab/{file:.*}", web::delete().to_async(dbg::<GitLab>))
|
.route("/gitlab/{file:.*}", web::delete().to_async(dbg::<GitLab>))
|
||||||
.service(actix_files::Files::new("/", "public").index_file("index.html"))
|
.service(actix_files::Files::new("/", "./public").index_file("index.html"))
|
||||||
})
|
})
|
||||||
.workers(OPT.workers)
|
.workers(OPT.workers)
|
||||||
.bind((OPT.interface, OPT.port))?
|
.bind((OPT.interface, OPT.port))?
|
||||||
|
Loading…
Reference in New Issue
Block a user