1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

pass queries too

This commit is contained in:
Jay 2025-02-11 00:13:30 -08:00
parent d26cdb4903
commit ad2ba18189
No known key found for this signature in database
GPG key ID: 97C2E533F17AF0EB

View file

@ -17,7 +17,8 @@ export default async function uploadsRoute(this: FastifyInstance, req: FastifyRe
const failed = await reply.preFile(file);
if (failed) return reply.notFound();
return this.nextServer.render(req.raw, reply.raw, `/view/${file.name}`);
// @ts-ignore
return this.nextServer.render(req.raw, reply.raw, `/view/${file.name}`, req.query);
}
export async function uploadsRouteOnResponse(