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:
parent
d26cdb4903
commit
ad2ba18189
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue