File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ pub fn storage_api_routes() -> Router<RouterState> {
238
238
// IMPORTANT NOTE: Those routes are proxied by Usher. Any changes to the router,
239
239
// such as adding or removing a route, or changing limits, also need to be
240
240
// applied to `crates_private/usher/src/proxy.rs`.
241
- pub fn action_callback_routes ( st : LocalAppState ) -> Router < LocalAppState > {
241
+ pub fn action_callback_routes < S > ( st : LocalAppState ) -> Router < S > {
242
242
Router :: new ( )
243
243
. route ( "/query" , post ( internal_query_post) )
244
244
. route ( "/mutation" , post ( internal_mutation_post) )
@@ -254,6 +254,7 @@ pub fn action_callback_routes(st: LocalAppState) -> Router<LocalAppState> {
254
254
// All routes above this line get the increased limit
255
255
. layer ( DefaultBodyLimit :: max ( * MAX_BACKEND_RPC_REQUEST_SIZE ) )
256
256
. layer ( axum:: middleware:: from_fn_with_state ( st. clone ( ) , action_callbacks_middleware) )
257
+ . with_state ( st)
257
258
}
258
259
259
260
pub fn import_routes ( ) -> Router < LocalAppState > {
You can’t perform that action at this time.
0 commit comments