From 059fea3cef47a15763b872fc7d37dd1bddae32c5 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sat, 8 Jan 2022 19:31:25 +0800 Subject: [PATCH] fix: api dist --- controllers/apis/dist.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/apis/dist.js b/controllers/apis/dist.js index 099d58d..4945090 100644 --- a/controllers/apis/dist.js +++ b/controllers/apis/dist.js @@ -15,6 +15,10 @@ module.exports = function* () { paths.shift(); var category = paths.shift(); + if (category.startsWith('@')) { + // @journeyapps/sqlcipher + category = `${category}/${paths.shift()}`; + } var name = paths.join('/').replace(/^\/?/, '/').replace(/\/?$/, '/'); debug('request %s, normalize to %s, got category: %s, name: %s', this.path, p, category, name);