Skip to content
Snippets Groups Projects
Commit f0a51e78 authored by Tonge, Marcus A (UG - Comp Sci & Elec Eng)'s avatar Tonge, Marcus A (UG - Comp Sci & Elec Eng)
Browse files

Admin API

parent 0e66f1d7
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,6 @@ const AdminPage = () => { ...@@ -35,7 +35,6 @@ const AdminPage = () => {
const isAdmin = async () => { const isAdmin = async () => {
const response = await fetch(`${baseUrl}/auth/admin`, { const response = await fetch(`${baseUrl}/auth/admin`, {
method: 'DELETE',
headers: { headers: {
Authorization: `Bearer ${localStorage.getItem("token")}`, Authorization: `Bearer ${localStorage.getItem("token")}`,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment