diff --git a/server/src/index.ts b/server/src/index.ts index 9bb9012..7bb82eb 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -9,7 +9,7 @@ import reportRoutes from './routes/reportRoutes'; dotenv.config(); const app = express(); -const PORT = process.env.PORT || 3000; +const PORT = process.env.PORT || 3005; // Middleware app.use(helmet()); diff --git a/src/services/reportService.ts b/src/services/reportService.ts index c085b0e..7ff5bda 100644 --- a/src/services/reportService.ts +++ b/src/services/reportService.ts @@ -31,7 +31,7 @@ class ReportService { const formData = new FormData(); formData.append('photo', file); - const response = await fetch(`${import.meta.env.VITE_API_BASE_URL || 'http://localhost:3000/api'}/reports/upload`, { + const response = await fetch(`${import.meta.env.VITE_API_BASE_URL || 'http://localhost:3005/api'}/reports/upload`, { method: 'POST', body: formData, });