M3: server core API (E-3 to E-30, E-33), landing page, pictures, rate limiting, recurring generation, bootstrap and pair-device
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -104,7 +104,7 @@ pub fn router(state: AppState) -> Router {
|
||||
.merge(authenticated)
|
||||
.fallback(fallback)
|
||||
.layer(DefaultBodyLimit::max(BODY_LIMIT_BYTES))
|
||||
.layer(rate_limit::layer()) // M3: the rate limiter of SPEC §8.6 attaches here (src/api/rate_limit.rs).
|
||||
.layer(rate_limit::layer(&state)) // M3: the rate limiter of SPEC §8.6 attaches here (src/api/rate_limit.rs).
|
||||
.layer(middleware::from_fn(log_request))
|
||||
.layer(middleware::map_response(add_server_version))
|
||||
.with_state(state)
|
||||
|
||||
Reference in New Issue
Block a user