6 lines
No EOL
211 B
TypeScript
6 lines
No EOL
211 B
TypeScript
import type {RequestHandler } from './$types'
|
|
import {json} from '@sveltejs/kit'
|
|
import exams from "$lib/data/competitive-exam.json"
|
|
export const GET: RequestHandler = async () => {
|
|
return json(exams)
|
|
} |