Commit Graph
30 Commits
Author SHA1 Message Date
Daniel García Aubert 102b11b1b5 Follow middleware naming convention 2018-02-28 13:10:46 +01:00
Eneko Lakasta 8867cdbc02 use anonymous function instead of arrow function in middleware export to don't bind this 2018-02-26 15:57:42 +01:00
Eneko Lakasta 59ca00b33b move apikey credentials getter to middleware file 2018-02-20 12:31:36 +01:00
Eneko Lakasta cda2616a8a get and check api key credentials from api key: username and token 2018-02-15 17:49:47 +01:00
Eneko Lakasta fc420c2c0f use for compatibility res.locals.api_key instead of res.locals.apikeyToken 2018-02-15 15:19:09 +01:00
Eneko Lakasta 5db0e9c8d8 add middleware for apikeyToken 2018-02-15 12:50:42 +01:00
Eneko Lakasta b82d26527a remove comment 2018-02-08 12:35:44 +01:00
Simon Martín 667b2a9cb1 removing underscore dependency in locals middleware 2017-11-15 16:56:21 +01:00
Simon Martín c0df0d12c6 ensure dont overwrite data in copy from req.params to res.locals 2017-10-20 17:21:55 +02:00
Simon Martín e3405ea2fc doing changes after merge with middlewarify 2017-10-09 12:27:58 +02:00
Simon Martín 5c0f597cbb Merge branch 'middlewarify' into res-locals 2017-10-09 10:55:43 +02:00
Daniel García Aubert c70b8cb5bf Set X-Served-By-DB-Host header in db-conn-setup middleware 2017-10-05 18:05:46 +02:00
Simon Martín 06138a82a8 Merge branch 'middlewarify' into res-locals 2017-10-05 17:53:15 +02:00
Daniel García Aubert 678fbb1c8f Remove bad argument to middleware callback 2017-10-05 17:28:41 +02:00
Simon Martín 2f310a15bd do not overwrite creation of res.locals 2017-10-05 17:23:07 +02:00
Simon Martín 1f03a6b181 using res.locals instead of params in AuthApi 2017-10-05 11:28:41 +02:00
Simon Martín 21720267cf from req.context to res.locals 2017-10-03 17:47:57 +02:00
Simon Martín 3ce10690d6 send res.locals instead of res when possible 2017-10-03 13:06:12 +02:00
Simon Martín 6bfc5d8891 fix function name and removing comments of localsMiddleware 2017-10-03 13:03:02 +02:00
Simon Martín 55f593eae6 adding forgotten semicolon 2017-10-02 12:08:10 +02:00
Simon Martín c22a35489d res.locals forgotten things and make jshint happy 2017-09-29 14:38:28 +02:00
Simon Martín b4d03c074a not move db params to res.locals.db 2017-09-29 11:07:11 +02:00
Simon ca612dd02a res.locals in context middlewares 2017-09-28 11:43:12 +02:00
Unknown fedcb0d0f9 remove unused middleware 2017-09-28 11:23:53 +02:00
Simon 178b9e8563 moving layergroup-token middleware to middlewarify style 2017-09-27 16:32:49 +02:00
Simon 84cd93b1b0 make jshint happy 2017-09-26 18:25:47 +02:00
Simon 134cc9ac0c changing req.locals to res.locals 2017-09-26 18:23:49 +02:00
Simon b94dfe066d removing some repeated things 2017-09-26 15:39:48 +02:00
Daniel García Aubert f0920aedef Remove unused module 2017-09-25 13:43:15 +02:00
Daniel García Aubert b236112069 Split prepare context middleware and fix unit test 2017-09-25 13:40:22 +02:00