diff options
author | Vika <vika@fireburn.ru> | 2022-07-07 00:34:43 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-07-07 00:36:39 +0300 |
commit | 7ddb7eddec3b928947b52f715aaf4821a818ebee (patch) | |
tree | a2274a6caedf4c2b1f11469097a51dddd68e774c /kittybox-rs/src/main.rs | |
parent | 7f23ec84bc05c236c1bf40c2f0d72412af711516 (diff) | |
download | kittybox-7ddb7eddec3b928947b52f715aaf4821a818ebee.tar.zst |
format using rustfmt
Diffstat (limited to 'kittybox-rs/src/main.rs')
-rw-r--r-- | kittybox-rs/src/main.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kittybox-rs/src/main.rs b/kittybox-rs/src/main.rs index ef051ba..ece31df 100644 --- a/kittybox-rs/src/main.rs +++ b/kittybox-rs/src/main.rs @@ -197,15 +197,17 @@ async fn main() { .route( "/.kittybox/onboarding", axum::routing::get(kittybox::frontend::onboarding::get) - .post(kittybox::frontend::onboarding::post::<FileStorage>) + .post(kittybox::frontend::onboarding::post::<FileStorage>), ) .route( "/.kittybox/micropub", axum::routing::get(kittybox::micropub::query::<FileStorage>) .post(kittybox::micropub::post::<FileStorage>) - .layer(tower_http::cors::CorsLayer::new() - .allow_methods([axum::http::Method::GET, axum::http::Method::POST]) - .allow_origin(tower_http::cors::Any)), + .layer( + tower_http::cors::CorsLayer::new() + .allow_methods([axum::http::Method::GET, axum::http::Method::POST]) + .allow_origin(tower_http::cors::Any), + ), ) .route( "/.kittybox/micropub/client", |