feat: added custom styling for swagger ui

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
This commit is contained in:
Adithya Krishna
2024-03-13 09:49:31 +05:30
parent c2cf25b138
commit 27a69819f9
2 changed files with 105 additions and 0 deletions

View File

@ -5,6 +5,10 @@ import 'swagger-ui-react/swagger-ui.css';
import { OpenAPIV1 } from '@documenso/api/v1/openapi';
// Custom CSS for the Swagger UI
// eslint-disable-next-line prettier/prettier
import './api-documentation.css';
export const OpenApiDocsPage = () => {
return <SwaggerUI spec={OpenAPIV1} displayOperationId={true} />;
};