Skip to content

Commit 6f532fa

Browse files
committed
feat: Implement initial Axum backend server with routes, middleware, and database integration.
1 parent e87785e commit 6f532fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use axum::http::{
2020
};
2121
use axum::{
2222
extract::{DefaultBodyLimit, Request},
23-
middleware::{self, from_extractor, from_fn, Next},
23+
middleware::{from_extractor, from_fn, Next},
2424
response::Response,
2525
routing::{delete, get, post, put},
2626
Router,
@@ -321,7 +321,7 @@ async fn main() {
321321

322322
// Serve index.html with server-side injection for root and fallback
323323
.route("/", get(handlers::frontend_proxy::serve_index))
324-
.route("/{*path}", get(handlers::frontend_proxy::serve_index));
324+
.route("/{*path}", get(handlers::frontend_proxy::serve_index))
325325
.layer(axum::middleware::from_fn(security::security_headers))
326326
.layer(cors_layer)
327327
.layer(DefaultBodyLimit::max(10 * 1024 * 1024)); // 10MB body limit

0 commit comments

Comments
 (0)