diff --git a/frontend/src/Controllers/AuthInfo.js b/frontend/src/Controllers/AuthInfo.js index 5a55b76d..f339681f 100644 --- a/frontend/src/Controllers/AuthInfo.js +++ b/frontend/src/Controllers/AuthInfo.js @@ -15,7 +15,7 @@ export const getUserInfoLoggedIn = ()=>{ } export const getUserInfo = async (username) =>{ const options = { - method: 'POST', + method: 'GET', headers: { 'Content-Type': 'application/json' }, } return fetch("/api/users/"+username+"/",options) @@ -40,4 +40,4 @@ export const getToken = async _=>{ setHeaders(r.access, r.refresh) return r}) .then(r=>r.access) -} \ No newline at end of file +}