This repository has been archived by the owner. It is now read-only.

重启DaoCloud

iguihui edited this page Sep 8, 2017 · 1 revision

var request = require('request');

//重启DaoCloud app.get('/http/daocloud/restart/:appid/:token',function(req, res){ var appid = req.params.appid; var token = req.params.token; request({ method: 'POST', url:"https://openapi.daocloud.io/v1/apps/"+ appid +"/actions/restart", headers: {"Authorization": token}}, function (error, response, body) { if(error) res.send(error); else res.send(body); });

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.