File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,14 +105,14 @@ async def custom_swagger_ui(request: Request) -> HTMLResponse:
105105
106106
107107@app .get ("/api" , include_in_schema = True )
108- @app .get ("/api/" , include_in_schema = True )
108+ @app .get ("/api/" , include_in_schema = False )
109109def openapi_json_get () -> JSONResponse :
110110 """Return the OpenAPI schema (openapi.json)."""
111111 return JSONResponse (app .openapi ())
112112
113113
114- @app .post ("/api" , include_in_schema = False )
115- @app .post ("/api/" , include_in_schema = True )
114+ @app .post ("/api" , include_in_schema = True )
115+ @app .post ("/api/" , include_in_schema = False )
116116def openapi_json_post () -> JSONResponse :
117117 """Return the OpenAPI schema (openapi.json)."""
118118 return JSONResponse (app .openapi ())
You can’t perform that action at this time.
0 commit comments