feat: use custom middleware for authorization
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

This commit is contained in:
Radical 2025-07-20 14:12:57 +02:00
parent dada230e08
commit 1ad88725bd
24 changed files with 157 additions and 365 deletions

View file

@ -163,7 +163,7 @@ async fn main() -> Result<(), Error> {
// build our application with a route
let app = Router::new()
// `GET /` goes to `root`
.merge(api::router(web.backend_url.path().trim_end_matches("/")))
.merge(api::router(web.backend_url.path().trim_end_matches("/"), app_state.clone()))
.with_state(app_state)
.layer(cors)
.layer(socket_io);