Moved eveything related to the api to a seperate folder seasoned_api.
This commit is contained in:
15
seasoned_api/src/webserver/controllers/git/dumpHook.js
Normal file
15
seasoned_api/src/webserver/controllers/git/dumpHook.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const configuration = require('src/config/configuration').getInstance();
|
||||
const GitRepository = require('src/git/gitRepository');
|
||||
const gitRepository = new GitRepository();
|
||||
|
||||
function dumpHookController(req, res) {
|
||||
gitRepository.dumpHook(req.body)
|
||||
.then(() => {
|
||||
res.status(200);
|
||||
})
|
||||
.catch((error) => {
|
||||
res.status(500);
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = dumpHookController;
|
||||
Reference in New Issue
Block a user