mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-24 05:05:44 +00:00
15 lines
301 B
TypeScript
15 lines
301 B
TypeScript
import { NextApiRequest, NextApiResponse } from "next"
|
|
|
|
import components from "./components.json"
|
|
|
|
export default async function handler(
|
|
req: NextApiRequest,
|
|
res: NextApiResponse
|
|
) {
|
|
if (req.method !== "GET") {
|
|
return res.status(405).end()
|
|
}
|
|
|
|
return res.status(200).json(components)
|
|
}
|