Skip to content
This repository has been archived by the owner on Apr 22, 2023. 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); });

Clone this wiki locally