Added a health check route to see if that helps.

This commit is contained in:
Rapturate
2026-04-28 00:32:41 -04:00
parent b4f568efab
commit d590a65c5e

View File

@@ -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;