mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 19:01:47 +00:00
feat(api-server): add optional params for search (#3440)
This commit is contained in:
@ -754,8 +754,8 @@ export const register = (
|
||||
return ctx.body(null);
|
||||
});
|
||||
app.openapi(routes.search, async (ctx) => {
|
||||
const { query } = ctx.req.valid('json');
|
||||
const response = await controller.search(query);
|
||||
const { query, params, continuation } = ctx.req.valid('json');
|
||||
const response = await controller.search(query, params, continuation);
|
||||
|
||||
ctx.status(200);
|
||||
return ctx.json(response as object);
|
||||
|
||||
Reference in New Issue
Block a user