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

6 lines
198 B
TypeScript
Raw Normal View History

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 () => {
2023-04-08 11:27:09 +07:00
return json(info)
}