tRPC Adapter
Use Filenest with tRPC
Add Filenest to your tRPC router
This guide assumes you have already instantiated a provider.
If not, check out this section.
Initialize the adapter
This example is using the uploadthing provider as the data source.
Middleware
The use of middleware is strongly recommended to prevent unauthorized access to your provider.
Custom Procedure
By default, the adapter uses a t.procedure
as the procedure for all routes.
You can pass the adapter a different procedure. This may be a more
elegant solution for adding a bunch of middleware.
You can use middleware and a custom procedure at the same time.