mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-26 03:41:09 +00:00
fmt
This commit is contained in:
parent
fc3e94bea0
commit
4f629f40b5
2 changed files with 2 additions and 3 deletions
|
@ -28,8 +28,7 @@ pub async fn file_and_error_handler(
|
||||||
.insert("accept-encoding", encodings.clone());
|
.insert("accept-encoding", encodings.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
let res = get_static_file(Request::from_parts(static_parts, Body::empty()), &root)
|
let res = get_static_file(Request::from_parts(static_parts, Body::empty()), &root).await?;
|
||||||
.await?;
|
|
||||||
|
|
||||||
if res.status() == StatusCode::OK {
|
if res.status() == StatusCode::OK {
|
||||||
Ok(res.into_response())
|
Ok(res.into_response())
|
||||||
|
|
|
@ -22,7 +22,7 @@ use activitypub_federation::{
|
||||||
http_signatures::generate_actor_keypair,
|
http_signatures::generate_actor_keypair,
|
||||||
};
|
};
|
||||||
use api::api_routes;
|
use api::api_routes;
|
||||||
use assets::{file_and_error_handler};
|
use assets::file_and_error_handler;
|
||||||
use axum::{
|
use axum::{
|
||||||
body::Body,
|
body::Body,
|
||||||
http::{HeaderValue, Request},
|
http::{HeaderValue, Request},
|
||||||
|
|
Loading…
Reference in a new issue