+5
packages/appview/src/index.ts
+5
packages/appview/src/index.ts
···
139
139
// Serve static files
140
140
app.use(express.static(frontendPath))
141
141
142
+
// Heathcheck
143
+
app.get('/health', (req, res) => {
144
+
res.status(200).json({ status: 'ok' })
145
+
})
146
+
142
147
// For any other requests, send the index.html file
143
148
app.get('*', (req, res) => {
144
149
// Only handle non-API paths