first commit
This commit is contained in:
commit
aa7869eb33
386 files changed
+69375
No files matched your search
@@ -0,0 +1,19 @@
|
||||
const _ = require('lodash');
|
||||
const promisify = require('promisify-node');
|
||||
|
||||
const scan = promisify(require('../../core/workers/datasetScan/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;
|
||||
Reference in new issue
Block a user