[CST-5535] WIP

This commit is contained in:
Pratik Rajkotiya
2022-03-25 18:37:25 +05:30
parent 46a0ea10f4
commit 108f6e60f9
4 changed files with 33 additions and 0 deletions

View File

@@ -157,6 +157,20 @@ export function app() {
*/
server.use('/iiif', express.static(IIIF_VIEWER, {index:false}));
/**
* Checking server status
*/
server.get('/app/health', async (req,res) => {
try {
const serverStatus = await https.get(`${environment.rest.baseUrl}/actuator/health`);
res.send(serverStatus);
} catch (error) {
res.send({
error: error.message
});
}
});
// Register the ngApp callback function to handle incoming requests
server.get('*', ngApp);