Skip to content

Commit

Permalink
Remove Reactor.urlencoded.
Browse files Browse the repository at this point in the history
Don't ever really use it actually. Never submit or process forms. Easy
enough to add this middleware as you need it. The `Reactor.json` and
`Reactor.auth` shortcuts are used often enough to retain them.
  • Loading branch information
flatheadmill committed Jan 5, 2019
1 parent abe73e6 commit e331bbc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions reactor.js
Expand Up @@ -308,10 +308,6 @@ Reactor.auth = function () {
return require('express-auth-parser')
}

Reactor.urlencoded = function () {
return require('body-parser').urlencoded({ extended: false, limit: '64mb' })
}

Reactor.reactor = function (object, configure, turnstile) {
return new Reactor(object, configure, turnstile)._middleware
}
Expand Down
1 change: 0 additions & 1 deletion t/shorthand.t.js
Expand Up @@ -26,7 +26,6 @@ function prove (okay, callback) {
var app = connect()
.use(Reactor.json())
.use(Reactor.auth())
.use(Reactor.urlencoded())
.use(Reactor.reactor({
object: 0
}, function (configurator) {
Expand Down

0 comments on commit e331bbc

Please sign in to comment.