Add auth
This commit is contained in:
4
src/app/api/auth/[...all]/route.ts
Normal file
4
src/app/api/auth/[...all]/route.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { auth } from "@/lib/auth";
|
||||
import { toNextJsHandler } from "better-auth/next-js";
|
||||
|
||||
export const { POST, GET } = toNextJsHandler(auth);
|
||||
0
src/app/api/public/v1/commissions/create/route.ts
Normal file
0
src/app/api/public/v1/commissions/create/route.ts
Normal file
0
src/app/api/public/v1/commissions/upload/route.ts
Normal file
0
src/app/api/public/v1/commissions/upload/route.ts
Normal file
23
src/app/login/page.tsx
Normal file
23
src/app/login/page.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
import LoginForm from "@/components/auth/LoginForm";
|
||||
import { Suspense } from "react";
|
||||
|
||||
export default function LoginPage() {
|
||||
return (
|
||||
<div className="flex min-h-screen items-center justify-center">
|
||||
<div className="w-full max-w-sm space-y-6">
|
||||
<div className="space-y-2 text-center">
|
||||
<h1 className="text-2xl font-semibold tracking-tight">
|
||||
Admin Sign In
|
||||
</h1>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Sign in with your administrator account
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<Suspense>
|
||||
<LoginForm />
|
||||
</Suspense>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user