[feat] Update route format

This commit is contained in:
JasonWu committed 2021-09-01 15:20:53 +08:00
1 parent b1e9c5e62a
commit 9174b540fd
11 files changed
+152 -76

No files matched your search

@@ -24,3 +24,17 @@ controller.loginSSO = () => async ctx => {
ctx.resp(resp.Success, { url: u.toString() });
};
controller.logout = () => async ctx => {
let link = '';
if (ctx.token.sso) {
link = sso.getLogoutURL();
}
ctx.resp(resp.Success, { url: link });
};
controller.getInfo = () => async ctx => {
ctx.resp(resp.Success, {});
};