mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
添加退出登录功能
This commit is contained in:
1 parent
d41eb582e4
commit
51b0418fa9
5 files changed
+21
-6
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user