svgl/src/pages/api/all.ts
2022-06-26 18:42:46 +01:00

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);
}