新增 LinuxDo Oauth2 登录

This commit is contained in:
eoao
2025-11-08 21:33:00 +08:00
parent c774009f82
commit d611436115
19 changed files with 451 additions and 36 deletions
+13
View File
@@ -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))
})