mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-28 05:32:54 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Specifies the use of middleware for logging, error monitoring, and performance optimization in FastAPI applications.
|
||||
globs: **/middleware/*.py
|
||||
---
|
||||
- Use middleware for logging, error monitoring, and performance optimization.
|
||||
- Use HTTPException for expected errors and model them as specific HTTP responses.
|
||||
- Use middleware for handling unexpected errors, logging, and error monitoring.
|
||||
- Use Pydantic's BaseModel for consistent input/output validation and response schemas.
|
||||
Reference in New Issue
Block a user