mirror of
https://github.com/pheralb/svgl.git
synced 2025-03-31 04:55:46 +08:00
11 lines
267 B
TypeScript
11 lines
267 B
TypeScript
import db from "data/svgs.json";
|
|
import type { NextApiRequest, NextApiResponse } from "next";
|
|
import { SvgData } from "@/interfaces/svgData";
|
|
|
|
export default function handler(
|
|
req: NextApiRequest,
|
|
res: NextApiResponse<SvgData[]>
|
|
) {
|
|
res.status(200).json(db);
|
|
}
|