const responseBody = { status : 'down' , } ; const statusEndpoint = ( app , checkHealthStatusUseCase ) => { app . get ( '/status' , ( _ , res ) => { const { isAlive } = checkHealthStatusUseCase . checkStatus ( ) ; if ( isAlive ) { responseBody . status = 'alive' ; } res . header ( 'Access-Control-Allow-Origin' , '*' ) ; res . send ( responseBody ) ; } ) ; } ; export default statusEndpoint ;