diff --git a/lib/units/api/index.js b/lib/units/api/index.js index 7d2d548733..051193b5dd 100644 --- a/lib/units/api/index.js +++ b/lib/units/api/index.js @@ -127,6 +127,10 @@ export default (async function(options) { , subdev: subdev }) req.options = reqOptions + if (req.path === '/api/v1/scheme') { + next() + return + } accessTokenAuth(req) .then(() => { next() @@ -147,6 +151,7 @@ export default (async function(options) { , exposeApiDocs: true , apiDoc: path.resolve(import.meta.dirname, 'swagger', 'api_v1.yaml') , paths: path.resolve(import.meta.dirname, 'paths') + , docsPath: '/scheme' } expressInitialize(config)