diff --git a/services/library.service.ts b/services/library.service.ts index cfd7321..a7b6325 100644 --- a/services/library.service.ts +++ b/services/library.service.ts @@ -32,7 +32,7 @@ SOFTWARE. */ "use strict"; -import { isNil } from "lodash"; +import { isNil, isUndefined } from "lodash"; import { Context, Service, @@ -510,6 +510,17 @@ export default class ImportService extends Service { }); }, }, + groupIssuesByBundles: { + rest: "GET /groupIssuesByBundles", + params: {}, + handler: async (ctx: Context<{}>) => { + // params: array of bundle IDs + // query mongo for + if(!isNil(ctx.params)) { + console.log(Object.values(ctx.params)); + } + } + }, libraryStatistics: { rest: "GET /libraryStatistics", params: {},