ts-rest / ts-rest

RPC-like client, contract, and server implementation for a pure REST API
https://ts-rest.com
MIT License
2.11k stars 91 forks source link

support middleware in @ts-rest/fastify similar to @ts-rest/express #603

Open outofthisworld opened 1 month ago

outofthisworld commented 1 month ago

Would be nice to have fastify also support middleware being added like the express version of the package.

Without middleware, we are kinda forced to either not use the package or create our own middleware chain. There's also no way to supply configuration to a particular route, making global middleware provided by fastify esentially useless.

I might be missing something, but the docs are limited so

atresnjo commented 3 weeks ago

also looking for this

da-max commented 4 days ago

I also think it would be a good feature.