|
@@ -68,15 +68,15 @@ app.use(
|
|
|
app.use(
|
|
|
koajwt({ secret: config.JWT_SECRET }).unless({
|
|
|
path: [
|
|
|
- /^\/api\/user\/login/,
|
|
|
- /^\/api\/user\/admin\/login/,
|
|
|
- /^\/api\/user\/wechat/,
|
|
|
- /^\/api\/user\/sendEmail/,
|
|
|
- /^\/api\/user\/regist/,
|
|
|
- /^\/api\/user\/password/,
|
|
|
- /^\/api\/admin\/page\/detail/,
|
|
|
- /^\/api\/ai\/proxy/,
|
|
|
- /^\/api\/firefly/,
|
|
|
+ /^\/api\/editor\/user\/login/,
|
|
|
+ /^\/api\/editor\/user\/admin\/login/,
|
|
|
+ /^\/api\/editor\/user\/wechat/,
|
|
|
+ /^\/api\/editor\/user\/sendEmail/,
|
|
|
+ /^\/api\/editor\/user\/regist/,
|
|
|
+ /^\/api\/editor\/user\/password/,
|
|
|
+ /^\/api\/editor\/admin\/page\/detail/,
|
|
|
+ /^\/api\/editor\/ai\/proxy/,
|
|
|
+ /^\/api\/editor\/firefly/,
|
|
|
],
|
|
|
}),
|
|
|
);
|