first commit

This commit is contained in:
Francois Klieber committed 2021-06-06 20:25:14 +02:00
commit aa7869eb33
386 files changed
+69375

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
const _ = require('lodash');
const promisify = require('promisify-node');
const scan = promisify(require('../../core/workers/dateRangeScan/parent'));
// starts a scan
// requires a post body with configuration of:
//
// - config.watch
const route = function *() {
var config = require('./baseConfig');
_.merge(config, this.request.body);
this.body = yield scan(config);
};
module.exports = route;