Skip to content

Commit 5236990

Browse files
committed
Update URLs
1 parent c185cad commit 5236990

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Frontend/src/services/categories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios';
22

3-
const baseCategoryUrl = 'http://question-service:3001/api/categories';
3+
const baseCategoryUrl = 'http://localhost:3001/api/categories';
44

55
export const getAllCategories = async () => {
66
console.log("getAllCategories func called")

Frontend/src/services/questions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios'
22

3-
const baseUrl = 'http://question-service:3001/api/questions'
3+
const baseUrl = 'http://localhost:3001/api/questions'
44

55
const getAll = () => {
66
const request = axios.get(baseUrl);

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
ports:
77
- "3001:3001"
88
healthcheck:
9-
test: ["CMD", "curl", "-f", "http://question-service:3001/health"]
9+
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
1010
interval: 10s
1111
timeout: 5s
1212
retries: 5

0 commit comments

Comments
 (0)