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