|
@@ -21,7 +21,7 @@ export const auth = payload => {
|
|
return async dispatch => {
|
|
return async dispatch => {
|
|
dispatch(authRequest());
|
|
dispatch(authRequest());
|
|
try {
|
|
try {
|
|
- const { data } = await axios.post("http://subdomain.entony.fs.a-level.com.ua/api/auth/login", payload);
|
|
|
|
|
|
+ const { data } = await axios.post("https://api-clinics.herokuapp.com/api/v1/auth/login", payload);
|
|
console.log('data',data)
|
|
console.log('data',data)
|
|
dispatch(authRequestSuccess(data));
|
|
dispatch(authRequestSuccess(data));
|
|
} catch (error){
|
|
} catch (error){
|
|
@@ -50,7 +50,7 @@ export const register = payload => {
|
|
dispatch(registerRequest());
|
|
dispatch(registerRequest());
|
|
try {
|
|
try {
|
|
const { data } = await axios.post(
|
|
const { data } = await axios.post(
|
|
- "http://subdomain.entony.fs.a-level.com.ua/api/auth/register",
|
|
|
|
|
|
+ "https://api-clinics.herokuapp.com/api/v1/auth/register",
|
|
payload
|
|
payload
|
|
);
|
|
);
|
|
|
|
|