mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-18 13:47:08 -04:00
Show build info
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { APIHandler } from './helpers/endpoint'
|
||||
import {git} from './../metadata.json'
|
||||
import {version as pkgVersion} from './../package.json'
|
||||
|
||||
export const health: APIHandler<'health'> = async (_, auth) => {
|
||||
return {
|
||||
message: 'Server is working.',
|
||||
uid: auth?.uid,
|
||||
git: git,
|
||||
version: pkgVersion,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user