From 7feab41e1f1e62ebdc2740ee8651e9d7ea4520e9 Mon Sep 17 00:00:00 2001 From: Christopher Chang Date: Sat, 6 Nov 2021 20:35:20 -0700 Subject: [PATCH] Fix current user request using wrong http method (#142) --- client/src/actions/currentUserActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/actions/currentUserActions.ts b/client/src/actions/currentUserActions.ts index 497101b..08c6c82 100644 --- a/client/src/actions/currentUserActions.ts +++ b/client/src/actions/currentUserActions.ts @@ -20,7 +20,7 @@ export const currentUserActionTypes = { export const setCurrentUser = () => { return (dispatch: Dispatch) => { axios - .post('/api/v1/current-user') + .get('/api/v1/current-user') .then((res) => { console.log(res.data); if (res.data && res.status === 200) {