File tree 3 files changed +4
-4
lines changed 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ module.exports = {
41
41
//in every 2 minutes will retry for failed status
42
42
EMAIL_RETRY_SCHEDULE : process . env . EMAIL_RETRY_SCHEDULE || '0 */2 * * * *' ,
43
43
44
- API_CONTEXT_PATH : process . env . API_CONTEXT_PATH || '/ email' ,
44
+ API_CONTEXT_PATH : process . env . API_CONTEXT_PATH || 'email' ,
45
45
API_VERSION : process . env . API_VERSION || 'v5' ,
46
46
47
47
} ;
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_CONTEXT_PATH } /${ config . API_VERSION } /health` ) ) {
193
+ && ( url !== `/ ${ config . API_VERSION } /${ config . API_CONTEXT_PATH } /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 @@ -20,15 +20,15 @@ routes[oldkeyHealthCheck] = {
20
20
}
21
21
} ;
22
22
23
- const keyEventType = `${ config . API_CONTEXT_PATH } /${ config . API_VERSION } /templates/eventType/:name` ;
23
+ const keyEventType = `/ ${ config . API_VERSION } /${ config . API_CONTEXT_PATH } /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
- const keyHealthCheck = `${ config . API_CONTEXT_PATH } /${ config . API_VERSION } /health` ;
31
+ const keyHealthCheck = `/ ${ config . API_VERSION } /${ config . API_CONTEXT_PATH } /health` ;
32
32
routes [ keyHealthCheck ] = {
33
33
get : {
34
34
controller : 'HealthController' ,
You can’t perform that action at this time.
0 commit comments