File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -293,11 +293,12 @@ export class NanotronApiServer {
293293 }
294294
295295 protected defineHealthRoute_ ( ) : void {
296+ this . logger_ . logMethod ?.( 'defineHealthRoute_' ) ;
297+
296298 this . defineRoute ( {
297299 method : 'GET' ,
298300 url : '/health' ,
299301 handler : function ( ) {
300- this . logger_ . logMethod ?.( 'defineHealthRoute_' ) ;
301302 const res = this . serverResponse . raw_ ;
302303 res . statusCode = HttpStatusCodes . Success_200_OK ;
303304 res . setHeader ( 'server' , 'Alwatr Nanotron' ) ;
@@ -308,12 +309,13 @@ export class NanotronApiServer {
308309 }
309310
310311 protected defineCorsRoute_ ( ) : void {
312+ this . logger_ . logMethod ?.( 'defineCorsRoute_' ) ;
313+
311314 this . defineRoute ( {
312315 method : 'OPTIONS' ,
313316 matchType : 'startsWith' ,
314317 url : '/' ,
315318 handler : function ( ) {
316- this . logger_ . logMethod ?.( 'defineCorsRoute_' ) ;
317319 const res = this . serverResponse . raw_ ;
318320 res . statusCode = HttpStatusCodes . Success_204_No_Content ;
319321 res . setHeader ( 'access-control-allow-origin' , '*' ) ;
You can’t perform that action at this time.
0 commit comments