aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/doc.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-22 16:15:14 +0100
committerChocobozzz <me@florianbigard.com>2023-02-22 16:15:14 +0100
commitc5c95361e6adca439ae316066366e520797f9ec0 (patch)
treefebf82864951f04f6c71df51107fe2231a0c6a7a /server/middlewares/doc.ts
parent6a160a0c9d46ee226fd0ca32ca0612e5b88881ec (diff)
downloadPeerTube-c5c95361e6adca439ae316066366e520797f9ec0.tar.gz
PeerTube-c5c95361e6adca439ae316066366e520797f9ec0.tar.zst
PeerTube-c5c95361e6adca439ae316066366e520797f9ec0.zip
Move to new documentation links
Diffstat (limited to 'server/middlewares/doc.ts')
-rw-r--r--server/middlewares/doc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/doc.ts b/server/middlewares/doc.ts
index eef76acaa..c43f41977 100644
--- a/server/middlewares/doc.ts
+++ b/server/middlewares/doc.ts
@@ -5,7 +5,7 @@ function openapiOperationDoc (options: {
5 operationId?: string 5 operationId?: string
6}) { 6}) {
7 return (req: express.Request, res: express.Response, next: express.NextFunction) => { 7 return (req: express.Request, res: express.Response, next: express.NextFunction) => {
8 res.locals.docUrl = options.url || 'https://docs.joinpeertube.org/api-rest-reference.html#operation/' + options.operationId 8 res.locals.docUrl = options.url || 'https://docs.joinpeertube.org/api/rest-reference.html#operation/' + options.operationId
9 9
10 if (next) return next() 10 if (next) return next()
11 } 11 }