Added endpoint for github webhooks

This commit is contained in:
Kevin Midboe
2017-04-14 17:14:11 +02:00
parent 36d1f4473f
commit 59e56b970e
2 changed files with 16 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ router.post('/v1/seasoned/verify/:strayId', require('./controllers/seasoned/veri
// router.get('/v1/plex/search', require('./controllers/plex/searchMedia.js'));
// router.post('/v1/plex/request/:mediaId', require('./controllers/plex/request.js'));
router.post('/v1/git/hooks', require('./controllers/git/dumpHook.js'));
// REGISTER OUR ROUTES -------------------------------
// all of our routes will be prefixed with /api

View File

@@ -0,0 +1,14 @@
/*
* @Author: KevinMidboe
* @Date: 2017-04-14 17:11:58
* @Last Modified by: KevinMidboe
* @Last Modified time: 2017-04-14 17:13:40
*/
const configuration = require('src/config/configuration').getInstance();
function dumpHookController(req, res) {
console.log(req);
}
module.exports = dumpHookController;