添加退出登录功能

This commit is contained in:
whyour committed 2021-03-23 14:32:17 +08:00
1 parent d41eb582e4
commit 51b0418fa9
5 files changed
+21 -6

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ export default ({ app }: { app: Application }) => {
app.use(bodyParser.urlencoded({ extended: true }));
app.use(
jwt({ secret: config.secret as string, algorithms: ['HS384'] }).unless({
path: ['/api/auth'],
path: ['/api/login'],
}),
);
app.use(config.api.prefix, routes());