mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: meta
This commit is contained in:
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 });
|
||||
};
|
||||
Reference in new issue
Block a user