Skip to content

Attach app-server middleware stack to /api/v1 routes#292

Open
694410194 wants to merge 1 commit into
CortexLM:mainfrom
694410194:codex/app-server-middleware-stack
Open

Attach app-server middleware stack to /api/v1 routes#292
694410194 wants to merge 1 commit into
CortexLM:mainfrom
694410194:codex/app-server-middleware-stack

Conversation

@694410194
Copy link
Copy Markdown

Summary

  • attach the existing app-server rate-limit, timeout, security-header, and content-type middleware to the /api/v1 router
  • keep the current trace and permissive CORS layers intact while activating the protections already implemented in middleware.rs
  • leave handler logic unchanged and scope the fix to router construction only

Verification

  • git diff --check
  • static review of src/cortex-app-server/src/lib.rs against the middleware definitions in src/cortex-app-server/src/middleware.rs
  • Rust toolchain was not available in this environment, so cargo test / cargo check could not be run here

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant