index: don't send git files
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
26c79d54e5
commit
80d21e9853
3
index.js
3
index.js
@ -147,6 +147,9 @@ io.on('connection', (socket) => {
|
||||
app.use(bodyParser.json()); // Parse application/json
|
||||
app.use(bodyParser.urlencoded({ extended: true })); // Parse application/x-www-form-urlencoded
|
||||
|
||||
app.all(/\.git/, (req, res) => {
|
||||
res.sendStatus(404);
|
||||
});
|
||||
app.post('/webhook', (req, res) => { return webhook(config, req, res); });
|
||||
app.get("/token", function(req,res) {
|
||||
var ts = new Date().getTime();
|
||||
|
Loading…
Reference in New Issue
Block a user