IndeedI
tRPC2y ago
2 replies
Indeed

Serving files with TRPC and Express

Hi!

Is there any way to serve files using express while using trpc typed way?
As in using

app.get<{filename: string}>('/assets', /* send file response */ );


but also being able to do on the client

trpc.assets.query({filename: 'test'})


instead of having to split between two solutions
Was this page helpful?