File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ RELAXATION_INTERVAL=3000
18
18
MATCH_TIMEOUT = 30000
19
19
CLEANUP_INTERVAL = 75000
20
20
21
+ JWT_ACCESS_TOKEN_SECRET = <your-jwt-accecss-token>
22
+
21
23
# Copy root .env
22
24
# If using mongoDB containerization, set to true. Else set to false (i.e local testing)
23
25
DB_REQUIRE_AUTH = true
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ const server = http.createServer(app);
25
25
26
26
initSocket ( server ) ;
27
27
28
+ app . use ( express . json ( ) ) ;
29
+
28
30
app . use ( cors ( {
29
31
origin : true ,
30
32
credentials : true ,
31
33
} ) ) ;
32
34
33
- app . use ( express . json ( ) ) ;
34
-
35
35
app . use ( "/api/match" , matchingRoutes ) ;
36
36
37
37
app . use ( errorHandler ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { getRoomDetails } from '../controllers/roomController';
2
2
import { cancelMatch , startMatching } from '../controllers/matchingController' ;
3
3
import express from 'express' ;
4
4
import { verifyAccessToken } from '../middlewares/basic-access-control' ;
5
- import { authenticateToken } from 'middlewares/auth' ;
5
+ import { authenticateToken } from '../ middlewares/auth' ;
6
6
7
7
const router = express . Router ( ) ;
8
8
You can’t perform that action at this time.
0 commit comments