File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,11 @@ async def validation_exception_handler(request, exc):
124124# openapi customization
125125cheshire_cat_api .openapi = get_openapi_configuration_function (cheshire_cat_api )
126126
127-
128- @cheshire_cat_api .get ("/docs" , include_in_schema = False )
129- async def scalar_docs ():
130- return get_scalar_api_reference (
131- openapi_url = cheshire_cat_api .openapi_url ,
132- title = cheshire_cat_api .title ,
133- scalar_favicon_url = "https://cheshirecat.ai/wp-content/uploads/2023/10/Logo-Cheshire-Cat.svg" ,
134- )
127+ if get_env ( "CCAT_DEBUG" ) == "true" :
128+ @cheshire_cat_api .get ("/docs" , include_in_schema = False )
129+ async def scalar_docs ():
130+ return get_scalar_api_reference (
131+ openapi_url = cheshire_cat_api .openapi_url ,
132+ title = cheshire_cat_api .title ,
133+ scalar_favicon_url = "https://cheshirecat.ai/wp-content/uploads/2023/10/Logo-Cheshire-Cat.svg" ,
134+ )
You can’t perform that action at this time.
0 commit comments