You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
riskcloudrun/routes/index.js

13 lines
382 B

4 years ago
var express = require('express');
var router = express.Router();
4 years ago
//web钩子事件
//git@gogs.kirito.cool:panqihua/RiskCloudMock.git push事件
router.post('/web', function(req, res, next) {
4 years ago
console.info(req.body)
4 years ago
console.info(req.body.repository.ssh_url)
4 years ago
console.info(req.body.repository.updated_at)
res.json({repository:req.body.repository})
4 years ago
});
4 years ago
module.exports = router;