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

19 lines
560 B
TypeScript
Raw Normal View History

import { Box } from "@mantine/core"
import { HistoryService, RedocStandalone } from "redoc"
// disable redoc url sync because it causes issues with hashrouter
Object.defineProperty(HistoryService.prototype, "replace", {
value: () => {},
})
2022-08-15 15:42:56 +02:00
2022-08-22 14:49:24 +02:00
function ApiDocumentationPage() {
return (
// force white background because documentation does not support dark theme
<Box style={{ backgroundColor: "#fff" }}>
<RedocStandalone specUrl="openapi.json" />
</Box>
)
2022-08-15 15:42:56 +02:00
}
2022-08-22 14:49:24 +02:00
export default ApiDocumentationPage