Initial Commit
Commit pertama, memindahkan repository dari github ke gitea.
This commit is contained in:
commit
13a47fbebf
41 files changed
+12327
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { isAuthenticated } from "@/lib/auth";
|
||||
|
||||
export async function GET() {
|
||||
const authed = await isAuthenticated();
|
||||
if (!authed) {
|
||||
return NextResponse.json({ authenticated: false }, { status: 401 });
|
||||
}
|
||||
return NextResponse.json({ authenticated: true, user: { username: "Aghatis" } });
|
||||
}
|
||||
Reference in new issue
Block a user