tangled
alpha
login
or
join now
danabra.mov
/
statusphere-react
forked from
samuel.fm/statusphere-react
0
fork
atom
the statusphere demo reworked into a vite/react app in a monorepo
0
fork
atom
overview
issues
pulls
pipelines
add healthcheck
samuel.fm
1 year ago
a797d571
452689f0
+5
1 changed file
expand all
collapse all
unified
split
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
142
+
// Heathcheck
143
143
+
app.get('/health', (req, res) => {
144
144
+
res.status(200).json({ status: 'ok' })
145
145
+
})
146
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