fix urls
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios'
|
||||
|
||||
const API_BASE_URL = process.env.NODE_ENV === 'production'
|
||||
? 'http://127.0.0.1:5010'
|
||||
? 'https://dev-api.rideaware.org'
|
||||
: 'http://127.0.0.1:5000'
|
||||
|
||||
const api = axios.create({
|
||||
@@ -39,7 +39,7 @@ api.interceptors.response.use(
|
||||
}
|
||||
|
||||
const refreshUrl = process.env.NODE_ENV === 'production'
|
||||
? 'http://127.0.0.1:5010/api/refresh-token'
|
||||
? 'https://dev-api.rideaware.org/api/refresh-token'
|
||||
: 'http://127.0.0.1:5000/api/refresh-token'
|
||||
|
||||
const { data } = await axios.post(refreshUrl, {
|
||||
|
||||
Reference in New Issue
Block a user