hrms-exam/cms/src/routes/api/info/+server.ts

9 lines
325 B
TypeScript
Raw Normal View History

import ver from "$lib/ver.json"
import {json} from '@sveltejs/kit'
2023-04-07 22:59:53 +07:00
import info from "$lib/data/info.json"
import type { RequestHandler } from './$types'
export const GET: RequestHandler = async () => {
const version = ver.version
const builddate = ver.builddate
2023-04-07 22:59:53 +07:00
return json({...info,version,builddate})
}