Initial role user app

This commit is contained in:
湛兮
2026-06-02 14:46:39 +08:00
commit 003dc60111
62 changed files with 7835 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { proxyBackendJson } from "@/lib/backend";
import type { AuthUser } from "@/lib/types";
export async function PATCH(request: Request) {
const body = await request.text();
return proxyBackendJson<AuthUser>("/auth/me/password", {
method: "PATCH",
body: body || undefined
});
}
+6
View File
@@ -0,0 +1,6 @@
import { proxyBackendJson } from "@/lib/backend";
import type { AuthUser } from "@/lib/types";
export async function GET() {
return proxyBackendJson<AuthUser>("/auth/me");
}