File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import expressSanitizer from 'express-sanitizer';
6
6
import config from 'config' ;
7
7
import coreLib from 'tc-core-library-js' ;
8
8
import expressRequestId from 'express-request-id' ;
9
+ import router from './routes' ;
9
10
import permissions from './permissions' ;
10
11
import models from './models' ;
11
12
import analytics from './events/analytics' ;
@@ -90,11 +91,8 @@ permissions();
90
91
// Routes
91
92
// ========================
92
93
93
- // app.use(router);
94
- app . use ( '/v4/projects/debug' , ( req , res ) => {
95
- res . status ( 200 ) . json ( { history : { } , env : process . env } ) ;
96
- } ) ;
97
- // app.routerRef = router;
94
+ app . use ( router ) ;
95
+ app . routerRef = router ;
98
96
99
97
// =======================
100
98
// Initialize services
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ const jwtAuth = require('tc-core-library-js').middleware.jwtAuthenticator;
25
25
26
26
router . all ( '/v4/projects*' , jwtAuth ( ) ) ;
27
27
28
+ router . get ( '/v4/projects/debug' , ( req , res ) => {
29
+ res . status ( 200 ) . json ( { history : { } , env : process . env } ) ;
30
+ } ) ;
31
+
28
32
// Register all the routes
29
33
router . route ( '/v4/projects' )
30
34
. post ( require ( './projects/create' ) )
You can’t perform that action at this time.
0 commit comments