add /health

This commit is contained in:
CJ_Clippy 2025-09-27 20:38:05 -08:00
parent d9ebfaedb2
commit ed8ee57815
2 changed files with 7 additions and 1 deletions

View File

@ -82,6 +82,12 @@ fastify.get("/", (request, reply) => {
.send(`HELLO<br>THIS IS rssapp ${packageJson.version}<br>OK<br>try <a href="/projektmelody">/projektmelody</a>`); .send(`HELLO<br>THIS IS rssapp ${packageJson.version}<br>OK<br>try <a href="/projektmelody">/projektmelody</a>`);
}); });
fastify.get("/health", (request, reply) => {
return reply
.code(200)
.header("Content-Type", "text/html; charset=utf-8")
.send('OK');
});
fastify.get("/:username", async (request, reply) => { fastify.get("/:username", async (request, reply) => {
const { username } = request.params; const { username } = request.params;

View File

@ -1,6 +1,6 @@
{ {
"name": "rssapp", "name": "rssapp",
"version": "69.1.0", "version": "69.1.1",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"type": "module", "type": "module",