Skip to content

Commit 3426cbd

Browse files
committed
Merge branch 'room-fetching-rest' of https://github.com/CS3219-AY2425S1/cs3219-ay2425s1-project-g25 into room-fetching-rest
2 parents eac3c94 + 1495bb1 commit 3426cbd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

backend/matching-service/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ RELAXATION_INTERVAL=3000
1818
MATCH_TIMEOUT=30000
1919
CLEANUP_INTERVAL=75000
2020

21+
JWT_ACCESS_TOKEN_SECRET=<your-jwt-accecss-token>
22+
2123
# Copy root .env
2224
# If using mongoDB containerization, set to true. Else set to false (i.e local testing)
2325
DB_REQUIRE_AUTH=true

backend/matching-service/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ const server = http.createServer(app);
2525

2626
initSocket(server);
2727

28+
app.use(express.json());
29+
2830
app.use(cors({
2931
origin: true,
3032
credentials: true,
3133
}));
3234

33-
app.use(express.json());
34-
3535
app.use("/api/match", matchingRoutes);
3636

3737
app.use(errorHandler);

backend/matching-service/routes/matchingRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getRoomDetails } from '../controllers/roomController';
22
import { cancelMatch, startMatching } from '../controllers/matchingController';
33
import express from 'express';
44
import { verifyAccessToken } from '../middlewares/basic-access-control';
5-
import { authenticateToken } from 'middlewares/auth';
5+
import { authenticateToken } from '../middlewares/auth';
66

77
const router = express.Router();
88

0 commit comments

Comments
 (0)