Moved contents of seasoned_api up to root folder
This commit is contained in:
16
src/webserver/controllers/git/dumpHook.js
Normal file
16
src/webserver/controllers/git/dumpHook.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const GitRepository = require("../../../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