upd
This commit is contained in:
11022
frontend/package-lock.json
generated
Normal file
11022
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
4
frontend/src/api/review.js
Normal file
4
frontend/src/api/review.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import http from './http';
|
||||
|
||||
export const createReview = (data) => http.post('/reviews', data);
|
||||
export const listReviewsByProduct = (productId) => http.get(`/reviews/product/${productId}`);
|
||||
@@ -2,11 +2,11 @@ module.exports = {
|
||||
devServer: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8080/',
|
||||
target: 'http://localhost:8088/',
|
||||
changeOrigin: true
|
||||
},
|
||||
'/uploads': {
|
||||
target: 'http://localhost:8080',
|
||||
target: 'http://localhost:8088',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user