Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for inner_strict_post (0.12 seconds)

  1. tests/test_strict_content_type_nested.py

    outer_router = APIRouter(prefix="/outer")  # inherits lax from app
    inner_strict = APIRouter(prefix="/strict", strict_content_type=True)
    inner_default = APIRouter(prefix="/default")
    
    
    @inner_strict.post("/items/")
    async def inner_strict_post(data: dict):
        return data
    
    
    @inner_default.post("/items/")
    async def inner_default_post(data: dict):
        return data
    
    
    outer_router.include_router(inner_strict)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 23 17:45:20 GMT 2026
    - 2.7K bytes
    - Click Count (0)
Back to Top