DEV Community

Discussion on: Adding an API and database to your Nuxt App with Prisma

Collapse
 
bastianhilton profile image
Sebastian hilton

I know its been several months since this post, but how does someone create API routes if you have hundreds of models? Is there an easier way or a generator?

Collapse
 
ruheni profile image
Ruheni Alex

Hi Sebastian 👋🏽
The API routes defined would be depended on the business logic of your application. However, if you're looking to build a generator, take a look at create-prisma-generator. However, the API for building generators is unofficial and undocumented.