feat(medusa): Add health endpoint for all running modes of medusa (#10737)

This commit is contained in:
Stevche Radevski
2024-12-26 13:53:12 +08:00
committed by GitHub
parent 699bb6dc24
commit c8f9938865
2 changed files with 6 additions and 4 deletions

View File

@@ -95,10 +95,6 @@ export async function expressLoader({ app }: { app: Express }): Promise<{
// Currently we don't allow configuration of static files, but this can be revisited as needed.
app.use("/static", express.static(path.join(baseDir, "static")))
app.get("/health", (req, res) => {
res.status(200).send("OK")
})
const shutdown = async () => {
redisClient?.disconnect()
}