mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
fix(admin): wire /admin/login, /admin/logout and /admin/invite routes
This commit is contained in:
parent
320e825bf8
commit
fa227b1533
3 changed files with 9 additions and 0 deletions
3
server/routes/admin/invite.get.ts
Normal file
3
server/routes/admin/invite.get.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { adminInvite } from "../../lib/web/admin";
|
||||||
|
|
||||||
|
export default defineEventHandler((event) => adminInvite(event));
|
||||||
3
server/routes/admin/login.get.ts
Normal file
3
server/routes/admin/login.get.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { adminLogin } from "../../lib/web/admin";
|
||||||
|
|
||||||
|
export default defineEventHandler((event) => adminLogin(event));
|
||||||
3
server/routes/admin/logout.get.ts
Normal file
3
server/routes/admin/logout.get.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { adminLogout } from "../../lib/web/admin";
|
||||||
|
|
||||||
|
export default defineEventHandler((event) => adminLogout(event));
|
||||||
Loading…
Add table
Add a link
Reference in a new issue