Skip to content

Commit

Permalink
feat(server): ping endpoint (#3816)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjedlicska authored Jan 15, 2025
1 parent cf7f259 commit 678e31d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/server/modules/core/rest/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
}

0 comments on commit 678e31d

Please sign in to comment.