We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 937eae6 commit c52f8a9Copy full SHA for c52f8a9
client/src/utils/api.js
@@ -29,7 +29,7 @@ function handleError (error) {
29
}
30
export async function makeApiRequest (url, method, data = null) {
31
try {
32
- const fullUrl = `${process.env.REACT_APP_API_PROTOCOL}://${process.env.REACT_APP_API_URL}/${url}`;
+ const fullUrl = `${process.env.REACT_APP_API_PROTOCOL}://${process.env.REACT_APP_API_URL}/${url}`
33
const res = await axios[method](fullUrl, data)
34
return res.data
35
} catch (error) {
0 commit comments