feat: meta

This commit is contained in:
tresabhi committed 2025-03-19 19:53:03 -05:00
1 parent 222fda0c91
commit e1957daa5c
1 file changed
+13
@@ -0,0 +1,13 @@
import type { APIRoute } from 'astro';
import packageJSON from '../../../../../package.json';
/**
* Returns information on the current build of BlitzKit like the version
* number, date of compilation, the game version used, etc.
*
* @todo Add more meta data.
* @returns JSON.
*/
export const GET: APIRoute = async () => {
return Response.json({ version: packageJSON.version });
};