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
+7
View File
@@ -0,0 +1,7 @@
import { proxyBackendJson } from "@/lib/backend";
import type { ShiftSummary } from "@/lib/types";
export async function GET(request: Request) {
const search = new URL(request.url).search;
return proxyBackendJson<ShiftSummary[]>(`/mobile/shifts${search}`);
}
+6
View File
@@ -0,0 +1,6 @@
import { proxyBackendJson } from "@/lib/backend";
import type { ShiftSummary } from "@/lib/types";
export async function GET() {
return proxyBackendJson<ShiftSummary | null>("/mobile/shifts/today");
}