Skip to content

Commit

Permalink
Changed the method type of user info to GET
Browse files Browse the repository at this point in the history
  • Loading branch information
berkaydoner committed Dec 14, 2021
1 parent 063afd7 commit f0f721d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Controllers/AuthInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -40,4 +40,4 @@ export const getToken = async _=>{
setHeaders(r.access, r.refresh)
return r})
.then(r=>r.access)
}
}

0 comments on commit f0f721d

Please sign in to comment.