Show build info

This commit is contained in:
MartinBraquet
2025-12-15 10:22:05 +02:00
parent e231f016d6
commit 8a4dc44fbc
6 changed files with 54 additions and 3 deletions

View File

@@ -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,
}
}