Add routes (untested)
This commit is contained in:
parent
db20819ad2
commit
d346ccf701
9 changed files with 132 additions and 13 deletions
7
app/api/auth/logout/route.ts
Normal file
7
app/api/auth/logout/route.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { NextResponse } from "next/server";
|
||||
|
||||
export async function POST() {
|
||||
const response = NextResponse.json({ success: true });
|
||||
response.cookies.delete("token");
|
||||
return response;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue