mirror of
https://github.com/schroinerxy/cloud-mail.git
synced 2026-06-21 19:35:50 +08:00
新增 LinuxDo Oauth2 登录
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import app from '../hono/hono';
|
||||
import result from "../model/result";
|
||||
import oauthService from "../service/oauth-service";
|
||||
|
||||
app.post('/oauth/linuxDo/login', async (c) => {
|
||||
const loginInfo = await oauthService.linuxDoLogin(c, await c.req.json());
|
||||
return c.json(result.ok(loginInfo))
|
||||
});
|
||||
|
||||
app.put('/oauth/bindUser', async (c) => {
|
||||
const loginInfo = await oauthService.bindUser(c, await c.req.json());
|
||||
return c.json(result.ok(loginInfo))
|
||||
})
|
||||
Reference in New Issue
Block a user