🎛 Added getBundlesForIssue endpoint scaffold

This commit is contained in:
2022-07-16 01:52:53 -07:00
parent 4452b64895
commit a45fb1c2e7

View File

@@ -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: {},