From 678e31d046808432a12d67e05a9a790a971dd3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= <57442769+gjedlicska@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:00:20 +0100 Subject: [PATCH] feat(server): ping endpoint (#3816) --- packages/server/modules/core/rest/static.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/server/modules/core/rest/static.ts b/packages/server/modules/core/rest/static.ts index 26ed599913..fc53dfcba5 100644 --- a/packages/server/modules/core/rest/static.ts +++ b/packages/server/modules/core/rest/static.ts @@ -4,4 +4,8 @@ import * as path from 'path' export default (app: express.Application) => { app.use('/static', express.static(path.join(packageRoot, 'assets', 'public'))) + app.use('/api/ping', (_, res) => { + res.set('Content-Type', 'text/plain') + res.send('pong') + }) }