|
@@ -56,18 +56,18 @@ class API(ExceptionHandler):
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
# OpenAPIの設定
|
|
# OpenAPIの設定
|
|
|
- self.openapi = OpenAPI(
|
|
|
|
|
- Info(
|
|
|
|
|
- {
|
|
|
|
|
- "title": "Fish Speech API",
|
|
|
|
|
- "version": "1.5.0",
|
|
|
|
|
- }
|
|
|
|
|
- ),
|
|
|
|
|
- ).routes
|
|
|
|
|
|
|
+ # self.openapi = OpenAPI(
|
|
|
|
|
+ # Info(
|
|
|
|
|
+ # {
|
|
|
|
|
+ # "title": "Fish Speech API",
|
|
|
|
|
+ # "version": "1.5.0",
|
|
|
|
|
+ # }
|
|
|
|
|
+ # ),
|
|
|
|
|
+ # ).routes
|
|
|
|
|
|
|
|
# Initialize the app
|
|
# Initialize the app
|
|
|
self.app = Kui(
|
|
self.app = Kui(
|
|
|
- routes=self.routes + self.openapi[1:], # Remove the default route
|
|
|
|
|
|
|
+ routes=self.routes,
|
|
|
exception_handlers={
|
|
exception_handlers={
|
|
|
HTTPException: self.http_exception_handler,
|
|
HTTPException: self.http_exception_handler,
|
|
|
Exception: self.other_exception_handler,
|
|
Exception: self.other_exception_handler,
|