add /health
This commit is contained in:
parent
d9ebfaedb2
commit
ed8ee57815
@ -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;
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user