diff --git a/web/src/app/(app)/api/[[...routes]]/route.ts b/web/src/app/(app)/api/[[...routes]]/route.ts index d7dd327..959a155 100644 --- a/web/src/app/(app)/api/[[...routes]]/route.ts +++ b/web/src/app/(app)/api/[[...routes]]/route.ts @@ -14,7 +14,7 @@ import { handle } from "hono/vercel"; export const dynamic = "force-dynamic"; -export const app = new OpenAPIHono().basePath("/api"); +const app = new OpenAPIHono().basePath("/api"); declare module "hono" { interface ContextVariableMap { diff --git a/web/src/components/docs/SwaggerUIClient.tsx b/web/src/components/docs/SwaggerUIClient.tsx index ceb7854..3fbaeb9 100644 --- a/web/src/components/docs/SwaggerUIClient.tsx +++ b/web/src/components/docs/SwaggerUIClient.tsx @@ -7,33 +7,35 @@ import _SwaggerUI from "swagger-ui-react"; import "swagger-ui-react/swagger-ui.css"; // Create the layout component -class AugmentingLayout extends React.Component { - render() { - const { getComponent } = this.props; - const BaseLayout = getComponent("BaseLayout", true); - return ( -
- -
- ); - } -} +// class AugmentingLayout extends React.Component { +// render() { +// const { getComponent } = this.props; +// const BaseLayout = getComponent("BaseLayout", true); +// return ( +//
+// +//
+// ); +// } +// } -const AugmentingLayoutPlugin = () => { - return { - components: { - AugmentingLayout: AugmentingLayout, - }, - }; -}; +// const AugmentingLayoutPlugin = () => { +// return { +// components: { +// AugmentingLayout: AugmentingLayout, +// }, +// }; +// }; export default function SwaggerUI(props: ComponentProps) { return ( - <_SwaggerUI - {...props} - persistAuthorization={true} - plugins={[AugmentingLayoutPlugin]} - layout="AugmentingLayout" - /> +
+ <_SwaggerUI + {...props} + persistAuthorization={true} + // plugins={[AugmentingLayoutPlugin]} + // layout="AugmentingLayout" + /> +
); }