Next.js Discord

Discord Forum

where do I place my CRUD files? in the API folder? or the page folder that there going 2 display on?

Unanswered
Beveren posted this in #help-forum
Open in Discord
BeverenOP
I have a Snippets page (folder), do I create another folder in that for CRUD, and I place GetSnippets, CreateSnippets, UpdateSnippets & DeleteSnippets (.tsx) files in that?

2 Replies

Madeiran sardinella
You can also create src/lib/snippet.ts and put it in