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.
12 lines
326 B
12 lines
326 B
var express = require('express');
|
|
var router = express.Router();
|
|
|
|
//web钩子事件
|
|
//git@gogs.kirito.cool:panqihua/RiskCloudMock.git push事件
|
|
router.post('/web', function(req, res, next) {
|
|
console.info(req.body)
|
|
console.info(req.body.repository.ssh_url)
|
|
res.json({'name':'push success'})
|
|
});
|
|
|
|
module.exports = router; |