Indeed
Indeed
Explore posts from servers
TtRPC
Created by Indeed on 3/11/2024 in #❓-help
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 */ );
app.get<{filename: string}>('/assets', /* send file response */ );
but also being able to do on the client
trpc.assets.query({filename: 'test'})
trpc.assets.query({filename: 'test'})
instead of having to split between two solutions
3 replies