mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
generate a nicer url in documentation (/rest instead of /openapi/../rest)
This commit is contained in:
@@ -5,7 +5,7 @@ function ApiDocumentationPage() {
|
||||
return (
|
||||
// force white background because documentation does not support dark theme
|
||||
<Box style={{ backgroundColor: "#fff" }}>
|
||||
<RedocStandalone specUrl="openapi/openapi.json" />
|
||||
<RedocStandalone specUrl="openapi.json" />
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ export default defineConfig({
|
||||
"/rest": "http://localhost:8083",
|
||||
"/next": "http://localhost:8083",
|
||||
"/ws": "ws://localhost:8083",
|
||||
"/openapi": "http://localhost:8083",
|
||||
"/openapi.json": "http://localhost:8083",
|
||||
"/custom_css.css": "http://localhost:8083",
|
||||
"/custom_js.js": "http://localhost:8083",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user