File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ function start(handlers) {
190
190
next ( ) ;
191
191
} ) ;
192
192
if ( ( url !== '/email/health' )
193
- && ( url !== `${ config . API_VERSION } /${ config . API_CONTEXT_PATH } /health` ) ) {
193
+ && ( url !== `${ config . API_CONTEXT_PATH } /${ config . API_VERSION } /health` ) ) {
194
194
actions . push ( jwtAuth ( ) ) ;
195
195
actions . push ( ( req , res , next ) => {
196
196
if ( ! req . authUser ) {
Original file line number Diff line number Diff line change 2
2
3
3
const config = require ( 'config' ) ;
4
4
5
- var routes = { } ;
5
+ const routes = { } ;
6
6
7
- let oldkeyEventType = '/email/templates/eventType/:name' ;
7
+ const oldkeyEventType = '/email/templates/eventType/:name'
8
8
routes [ oldkeyEventType ] = {
9
9
get : {
10
10
controller : 'TemplateController' ,
11
11
method : 'eventTypes' ,
12
12
}
13
13
} ;
14
14
15
- let oldkeyHealthCheck = '/email/health' ;
15
+ const oldkeyHealthCheck = '/email/health'
16
16
routes [ oldkeyHealthCheck ] = {
17
17
get : {
18
18
controller : 'HealthController' ,
19
19
method : 'health' ,
20
20
}
21
21
} ;
22
22
23
- let keyEventType = `${ config . API_VERSION } /${ config . API_CONTEXT_PATH } /templates/eventType/:name` ;
23
+ const keyEventType = `${ config . API_CONTEXT_PATH } /${ config . API_VERSION } /templates/eventType/:name` ;
24
24
routes [ keyEventType ] = {
25
25
get : {
26
26
controller : 'TemplateController' ,
27
27
method : 'eventTypes' ,
28
28
}
29
29
} ;
30
30
31
- let keyHealthCheck = `${ config . API_VERSION } /${ config . API_CONTEXT_PATH } /health` ;
31
+ const keyHealthCheck = `${ config . API_CONTEXT_PATH } /${ config . API_VERSION } /health` ;
32
32
routes [ keyHealthCheck ] = {
33
33
get : {
34
34
controller : 'HealthController' ,
You can’t perform that action at this time.
0 commit comments