This repository has been archived on 2025-10-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gekko/web/routes/scanDatasets.js
2021-06-06 20:25:14 +02:00

19 lines
407 B
JavaScript

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;