mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-24 21:41:30 +08:00
Change Swagger endpoint and site title
This commit is contained in:
parent
18f5f1b759
commit
d859f50c98
@ -12,11 +12,11 @@ const swaggerDocument = yaml.load(
|
|||||||
|
|
||||||
function register(router: Router) {
|
function register(router: Router) {
|
||||||
router.use(
|
router.use(
|
||||||
"/api-docs",
|
"/etapi",
|
||||||
swaggerUi.serve,
|
swaggerUi.serve,
|
||||||
swaggerUi.setup(swaggerDocument, {
|
swaggerUi.setup(swaggerDocument, {
|
||||||
explorer: true,
|
explorer: true,
|
||||||
customSiteTitle: "Trilium ETAPI Documentation"
|
customSiteTitle: "TriliumNext ETAPI Documentation"
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user