[feat] Update route format
This commit is contained in:
@@ -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, {});
|
||||
};
|
||||
Reference in New Issue
Block a user