🎛 Added getBundlesForIssue endpoint scaffold
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user