feat: use custom middleware for authorization
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
dada230e08
commit
1ad88725bd
24 changed files with 157 additions and 365 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue