🎛 Added getBundlesForIssue endpoint scaffold
This commit is contained in:
@@ -32,7 +32,7 @@ SOFTWARE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
import { isNil } from "lodash";
|
import { isNil, isUndefined } from "lodash";
|
||||||
import {
|
import {
|
||||||
Context,
|
Context,
|
||||||
Service,
|
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: {
|
libraryStatistics: {
|
||||||
rest: "GET /libraryStatistics",
|
rest: "GET /libraryStatistics",
|
||||||
params: {},
|
params: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user