function sendData(params, {fs, config, moveFiles}, callback) {
    const p = params;
    const isMD = p.name.startsWith('/markdown');
    const rootDir = config('root');
    
    if (isMD)
        return markdown(p.name, rootDir, p.request, callback);
    
    const {method} = p.request;
    
    switch(method) {
    case 'GET':
        return onGET(params, config, callback);
    
    case 'PUT':
        return pullout(p.request)
            .then((body) => {
                onPUT({
                    name: p.name,
                    fs,
                    moveFiles,
                    config,
                    body,
                }, callback);
            })
            .catch(callback);
    }
}
getting data on method and command

@param params {name, method, body, requrest, response}
@param config {}
@param callback