controller
This commit is contained in:
parent
9f2a08ccc9
commit
2609ecc1bf
17 changed files with 320 additions and 95 deletions
|
@ -21,8 +21,7 @@ export async function getAllWearables(req: Request, res: Response): Promise<any>
|
|||
let noLimit = req.query.noLimit === "true";
|
||||
let ids = ((req.query.ids ?? "") as string).split(",").filter((i) => i);
|
||||
|
||||
//{ offset, count, search, noLimit, ids }
|
||||
let [wearables, total] = await WearableService.getAll();
|
||||
let [wearables, total] = await WearableService.getAll({ offset, count, search, noLimit, ids });
|
||||
|
||||
res.json({
|
||||
wearables: wearables,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue