From d1eee847267716e8bd49924c8f54f2139ff04df3 Mon Sep 17 00:00:00 2001 From: Aaro Koivukangas Date: Tue, 5 Mar 2024 12:39:49 +0200 Subject: [PATCH] changed backend port to be 5005 --- backend/src/index.ts | 2 +- frontend/src/services/busService.ts | 2 +- frontend/src/services/tramService.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 8d39c1e..9f9bf65 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -4,7 +4,7 @@ import cors from "cors"; import { queryTripsFromStopById } from "./query"; -const PORT: number = 5000; +const PORT: number = 5005; const api = express(); diff --git a/frontend/src/services/busService.ts b/frontend/src/services/busService.ts index 5554ec5..08e18b2 100644 --- a/frontend/src/services/busService.ts +++ b/frontend/src/services/busService.ts @@ -1,4 +1,4 @@ -const baseUrl = "http://localhost:5000"; +const baseUrl = "http://localhost:5005"; export const getTimes = async () => { const response = await fetch(baseUrl + "/bus"); diff --git a/frontend/src/services/tramService.ts b/frontend/src/services/tramService.ts index 66d45ca..96c5d25 100644 --- a/frontend/src/services/tramService.ts +++ b/frontend/src/services/tramService.ts @@ -1,4 +1,4 @@ -const baseUrl = "http://localhost:5000"; +const baseUrl = "http://localhost:5005"; export const getTimes = async () => { const response = await fetch(baseUrl + "/tram");