External (Django) middleware
In my current project, there's a Django middleware attached to my current and non-t3-stack Next app.
What would the best approach be for migrating to create-t3-app in terms of tRPC and Zod?
I still need to call the Django's API routes
My current setup, with an example of a User
src/models/<1:1 copy of the Django model
src/models/User/index.ts
contains a class User
with some additional getters and methods
src/models/User/api.ts contains the functions such as
retrieveUser,
createUser etc
src/models/User/types.ts` contains all the types that relate to anything for the User0 Replies