MCPcopy Create free account
hub / github.com/9d8dev/directory / GET

Function GET

app/api/admin/logout/route.ts:4–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { cookies } from "next/headers";
3
4export async function GET() {
5 // Remove the authentication cookie
6 cookies().delete("boho_token");
7
8 return NextResponse.redirect(new URL("/", process.env.NEXT_PUBLIC_SITE_URL));
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected