Skip to content

Commit

Permalink
Merge pull request #69 from avored/67-basic-asset-table
Browse files Browse the repository at this point in the history
fixed the middleware
  • Loading branch information
indpurvesh authored Oct 27, 2023
2 parents 2034d26 + 57fffd4 commit 8739598
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/asset/asset_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ pub fn asset_routes(state: Arc<AvoRedState>) -> Router {
Router::new()
.route("/admin/asset", get(asset_table_handler))
.route("/admin/store-asset", post(store_asset_handler))
// .route_layer(middleware::from_fn_with_state(
// state.clone(),
// require_authentication,
// ))
.route_layer(middleware::from_fn_with_state(
state.clone(),
require_authentication,
))
.with_state(state)
}

0 comments on commit 8739598

Please sign in to comment.