diff --git a/src/server.js b/src/server.js index 7a859d6f8..e517919f1 100755 --- a/src/server.js +++ b/src/server.js @@ -75,15 +75,6 @@ function retire(req, res, next) { next(new HttpSuccess(202, {})); } -function backup(req, res, next) { - // !! below port has to be in sync with box/config.js internalPort - superagent.post('http://127.0.0.1:3001/api/v1/backup').end(function (error, result) { - if (error) return next(new HttpError(500, error)); - if (result.statusCode !== 202) return next(new HttpError(result.statusCode, 'trigger backup failed with ' + result.body.message)); - next(new HttpSuccess(202, {})); - }); -} - function startUpdateServer(callback) { assert.strictEqual(typeof callback, 'function'); @@ -123,7 +114,6 @@ function startProvisionServer(callback) { .use(lastMile()); router.post('/api/v1/installer/retire', retire); - router.post('/api/v1/installer/backup', backup); var caPath = path.join(__dirname, process.env.NODE_ENV === 'test' ? '../../keys/installer_ca' : 'certs'); var certPath = path.join(__dirname, process.env.NODE_ENV === 'test' ? '../../keys/installer' : 'certs');