Added a health check route to see if that helps.
This commit is contained in:
@@ -19,6 +19,8 @@ const app = express();
|
|||||||
const PORT = process.env.PORT || 3000;
|
const PORT = process.env.PORT || 3000;
|
||||||
|
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
app.get('/health', (req, res) => res.status(200).json({ status: 'UP' }));
|
||||||
|
app.get('/', (req, res) => res.status(200).send('API is running...'));
|
||||||
if (process.env.NODE_ENV !== 'test') app.use(morgan('tiny'));
|
if (process.env.NODE_ENV !== 'test') app.use(morgan('tiny'));
|
||||||
|
|
||||||
let specs;
|
let specs;
|
||||||
|
|||||||
Reference in New Issue
Block a user