Skip to content

Commit 5e04a25

Browse files
committed
changed spender route to use ServiceBuilder
1 parent bf81108 commit 5e04a25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sentry/src/routes/routers.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ pub fn channels_router_axum<C: Locked + 'static>() -> Router {
141141
get(get_spender_limits_axum::<C>).post(add_spender_leaf_axum::<C>),
142142
)
143143
.route("/all", get(get_all_spender_limits_axum::<C>))
144-
.layer(middleware::from_fn(authentication_required::<C, _>));
144+
.layer(
145+
// keeps the order from top to bottom!
146+
ServiceBuilder::new()
147+
.layer(middleware::from_fn(authentication_required::<C, _>)),
148+
);
145149

146150
let channel_routes = Router::new()
147151
.route(

0 commit comments

Comments
 (0)