diff --git a/.env b/.env.example similarity index 60% rename from .env rename to .env.example index 9408a61..58fd94e 100644 --- a/.env +++ b/.env.example @@ -1,2 +1,2 @@ VITE_API_URL=https://mm.com.tm/api/v1/ -VITE_API_TOKEN=hello-mf-s \ No newline at end of file +VITE_API_TOKEN=hello-mf-s diff --git a/.gitignore b/.gitignore index a547bf3..b505e4d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Env +.env + # Logs logs *.log diff --git a/src/app/api/authApi.js b/src/app/api/authApi.js index d1a9fec..2d1beae 100644 --- a/src/app/api/authApi.js +++ b/src/app/api/authApi.js @@ -8,6 +8,7 @@ export const authApi = baseApi.injectEndpoints({ method: "POST", headers: { "Content-Type": "application/json", + "Accept": "application/json" }, }), async onQueryStarted(_, { queryFulfilled }) {