Ui for admin. Logout successfull. Admin not reachable from homepage. Neither is logoutpage. Update for Architecture file.
This commit is contained in:
11
apps/public-web/app/(site)/admin/LogoutButton.tsx
Normal file
11
apps/public-web/app/(site)/admin/LogoutButton.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
"use client";
|
||||
|
||||
export default function LogoutButton() {
|
||||
const backend = process.env.NEXT_PUBLIC_BACKEND_URL ?? "http://localhost:8080";
|
||||
|
||||
return (
|
||||
<form action={`${backend}/logout`} method="post">
|
||||
<button type="submit">Logout</button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user