Files
Athou_commafeed/commafeed-client/src/pages/app/ApiDocumentationPage.tsx

15 lines
423 B
TypeScript
Raw Normal View History

import { Box } from "@mantine/core"
2022-08-22 14:49:24 +02:00
import SwaggerUI from "swagger-ui-react"
import "swagger-ui-react/swagger-ui.css"
2022-08-15 15:42:56 +02:00
2022-08-22 14:49:24 +02:00
function ApiDocumentationPage() {
return (
// force white background because swagger is unreadable with dark theme
<Box style={{ backgroundColor: "#fff" }}>
2023-12-17 12:46:44 +01:00
<SwaggerUI url="openapi/openapi.json" />
</Box>
)
2022-08-15 15:42:56 +02:00
}
2022-08-22 14:49:24 +02:00
export default ApiDocumentationPage