JavascriptMick / supanuxt-saas

Simple boilerplate for SAAS. Nuxt3, Supabase, OAuth, Prisma, TRPC, Pinia, Stripe, Tailwind, OpenAI
https://nuxt3-saas-boilerplate.netlify.app/
MIT License
407 stars 55 forks source link

No support for api (rest) endpoints #11

Closed JavascriptMick closed 1 year ago

JavascriptMick commented 1 year ago

The current repo only exposes Trpc endpoints and does not offer up standard rest endpoints. Including rest endpoints may be handy when building other clients e.g. a Flutter client where there poor Trpc Support.

Implementation Details Nuxt is great at rest endpoints but it would be necessary to 'lift' all of the auth context stuff into an auth middleware and just copy it down into the Trpc context.