File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " voltranjs" ,
3- "version" : " 1.0.21 " ,
3+ "version" : " 1.0.22 " ,
44 "main" : " src/index.js" ,
55 "author" : " Hepsiburada Technology Team" ,
66 "bin" : {
Original file line number Diff line number Diff line change @@ -62,13 +62,7 @@ const handleProcessMessage = message => {
6262
6363const handleUrls = async ( req , res , next ) => {
6464 if ( req . url === '/' && req . method === 'GET' ) {
65- if ( process . env . NODE_ENV === 'production' ) {
66- res
67- . status ( HTTP_STATUS_CODES . INTERNAL_SERVER_ERROR )
68- . html ( '<h1>Aradığınız sayfa bulunamadı...</h1>' ) ;
69- } else {
70- res . html ( Welcome ( ) ) ;
71- }
65+ res . html ( Welcome ( ) ) ;
7266 } else if ( req . url === '/metrics' && req . method === 'GET' && ! enablePrometheus ) {
7367 res . setHeader ( 'Content-Type' , prom . register . contentType ) ;
7468 res . end ( prom . register . metrics ( ) ) ;
You can’t perform that action at this time.
0 commit comments