Fix breaking changes
This commit is contained in:
parent
b06bbbba8f
commit
22aad6ed77
@ -394,12 +394,10 @@ async fn async_p404() -> Result<HttpResponse> {
|
|||||||
p404()
|
p404()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[get("/tacit-css.min.css")]
|
|
||||||
fn css() -> HttpResponse {
|
fn css() -> HttpResponse {
|
||||||
HttpResponse::Ok().content_type("text/css").body(CSS)
|
HttpResponse::Ok().content_type("text/css").body(CSS)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[get("/favicon.ico")]
|
|
||||||
fn favicon32() -> HttpResponse {
|
fn favicon32() -> HttpResponse {
|
||||||
HttpResponse::Ok().content_type("image/png").body(FAVICON)
|
HttpResponse::Ok().content_type("image/png").body(FAVICON)
|
||||||
}
|
}
|
||||||
@ -414,10 +412,11 @@ async fn start_server() -> std::io::Result<()> {
|
|||||||
App::new()
|
App::new()
|
||||||
.data(state.clone())
|
.data(state.clone())
|
||||||
.wrap(middleware::Logger::default())
|
.wrap(middleware::Logger::default())
|
||||||
.wrap(middleware::NormalizePath::default())
|
// .wrap(middleware::NormalizePath::default())
|
||||||
.service(index)
|
.service(index)
|
||||||
.service(css)
|
.service(web::resource("/tacit-css.min.css").route(web::get().to(css)))
|
||||||
.service(favicon32)
|
// TODO
|
||||||
|
.service(web::resource("/favicon.ico").route(web::get().to(favicon32)))
|
||||||
.service(generate)
|
.service(generate)
|
||||||
.service(web::resource("/github/{user}/{repo}").to(calculate_hoc::<GitHub>))
|
.service(web::resource("/github/{user}/{repo}").to(calculate_hoc::<GitHub>))
|
||||||
.service(web::resource("/gitlab/{user}/{repo}").to(calculate_hoc::<Gitlab>))
|
.service(web::resource("/gitlab/{user}/{repo}").to(calculate_hoc::<Gitlab>))
|
||||||
|
Loading…
Reference in New Issue
Block a user