Skip to content

Commit

Permalink
Remove ExpressBrute use
Browse files Browse the repository at this point in the history
  • Loading branch information
aivuk committed Nov 14, 2018
1 parent 88822b2 commit 0fe57eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const StaticmanAPI = function () {

this.initialiseWebhookHandler()
this.initialiseCORS()
this.initialiseBruteforceProtection()
// this.initialiseBruteforceProtection()
this.initialiseRoutes()
}

Expand All @@ -48,23 +48,23 @@ StaticmanAPI.prototype.initialiseRoutes = function () {
// Route: connect
this.server.get(
'/v:version/connect/:username/:repository',
this.bruteforce.prevent,
// this.bruteforce.prevent,
this.requireApiVersion([1, 2]),
this.controllers.connect
)

// Route: process
this.server.post(
'/v:version/entry/:username/:repository/:branch',
this.bruteforce.prevent,
// this.bruteforce.prevent,
this.requireApiVersion([1, 2]),
this.requireParams(['fields']),
this.controllers.process
)

this.server.post(
'/v:version/entry/:username/:repository/:branch/:property',
this.bruteforce.prevent,
// this.bruteforce.prevent,
this.requireApiVersion([2]),
this.requireParams(['fields']),
this.controllers.process
Expand All @@ -73,7 +73,7 @@ StaticmanAPI.prototype.initialiseRoutes = function () {
// Route: encrypt
this.server.get(
'/v:version/encrypt/:text',
this.bruteforce.prevent,
// this.bruteforce.prevent,
this.requireApiVersion([2]),
this.controllers.encrypt
)
Expand Down

0 comments on commit 0fe57eb

Please sign in to comment.