This commit is contained in:
adueck 2024-11-26 17:11:36 +05:00
parent a0704e7808
commit f9afbd017c
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ app.get("/", (c) => {
}); });
app.get("/wa", authMiddleware, async (c) => { app.get("/wa", authMiddleware, async (c) => {
return c.json({ user: c.var.user }); return c.json({ name: c.var.user?.name, admin: c.var.user?.admin });
}); });
export default app; export default app;