mirror of
https://github.com/formbricks/formbricks.git
synced 2026-03-06 01:03:01 -06:00
Add OSS friends api endpoint (#604)
This commit is contained in:
14
apps/formbricks-com/pages/api/oss-friends/index.ts
Normal file
14
apps/formbricks-com/pages/api/oss-friends/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { OSSFriends } from "@/pages/oss-friends";
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
export default async function handle(req: NextApiRequest, res: NextApiResponse) {
|
||||
// GET
|
||||
if (req.method === "GET") {
|
||||
return res.status(200).json({ data: OSSFriends });
|
||||
}
|
||||
|
||||
// Unknown HTTP Method
|
||||
else {
|
||||
throw new Error(`The HTTP ${req.method} method is not supported by this route.`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user