Skip to content

Commit

Permalink
Add health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ljones140 committed Oct 29, 2024
1 parent 654d7fc commit e5023f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions public/health.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import http from "http"

http
.createServer((req, res) =>
res
.writeHead(200, { "Content-Type": "application/json" })
.end(JSON.stringify(process.env.NODE_ENV)),
)
.listen()

0 comments on commit e5023f5

Please sign in to comment.