|
|
@@ -71,7 +71,7 @@ const loginRoute = createRoute({
|
|
|
app.openapi(loginRoute, async (c) => {
|
|
|
const { username, password } = c.req.valid('json')
|
|
|
const result = await authService.login(username, password)
|
|
|
- return c.json(result)
|
|
|
+ return c.json(result, 200)
|
|
|
})
|
|
|
|
|
|
// 注册路由
|
|
|
@@ -133,7 +133,7 @@ app.openapi(meRoute, async (c) => {
|
|
|
return c.json({
|
|
|
id: user.id,
|
|
|
username: user.username
|
|
|
- })
|
|
|
+ }, 200)
|
|
|
})
|
|
|
|
|
|
export const authOpenApiApp = app
|