threed-garden
Version:
ThreeD Garden: WebGL 3D Environment Interface for Next.JS React TypeScript Three.JS React-Three Physics, 2D Paper.JS; APIs: Apollo GraphQL, WordPress; CSS: Tailwind, Radix-UI; Libraries: FarmBot 3D; AI: OpenAI, DeepSeek
21 lines (17 loc) • 486 B
text/typescript
import objectsJSON from '#/app/api/home-design/objects.json'
// export const revalidate = 60
// export async function GET() {
// const data = objectsJSON // await fetch('https://api.vercel.app/blog')
// const objects = data // await data.json()
// return Response.json(objects)
// }
export async function GET() {
return new Response(
JSON.stringify(objectsJSON),
{
headers: {
'Content-Type': 'application/json',
},
}
)
}