From c5c95361e6adca439ae316066366e520797f9ec0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Feb 2023 16:15:14 +0100 Subject: Move to new documentation links --- server/middlewares/doc.ts | 2 +- server/middlewares/error.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares') 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: { operationId?: string }) { return (req: express.Request, res: express.Response, next: express.NextFunction) => { - res.locals.docUrl = options.url || 'https://docs.joinpeertube.org/api-rest-reference.html#operation/' + options.operationId + res.locals.docUrl = options.url || 'https://docs.joinpeertube.org/api/rest-reference.html#operation/' + options.operationId if (next) return next() } diff --git a/server/middlewares/error.ts b/server/middlewares/error.ts index 96a85012a..7b116eb57 100644 --- a/server/middlewares/error.ts +++ b/server/middlewares/error.ts @@ -28,7 +28,7 @@ function apiFailMiddleware (req: express.Request, res: express.Response, next: e detail: message, type: type - ? `https://docs.joinpeertube.org/api-rest-reference.html#section/Errors/${type}` + ? `https://docs.joinpeertube.org/api/rest-reference.html#section/Errors/${type}` : undefined }, extension) -- cgit v1.2.3