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
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
@Beveren 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?
you can do either that or create CRUDSnippets.tsx and put all the functions inside
Madeiran sardinella
You can also create src/lib/snippet.ts and put it in