loopback/lib/middleware
Miroslav Bajtoš bfb154d445 Modify `loopback.rest` to include `loopback.token`
Make `loopback.rest` self-contained, so that authentication works
out of the box.

    var app = loopback();
    app.enableAuth();
    app.use(loopback.rest());

Note that cookie parsing middleware is not added, users have to
explicitly configure that if they want to store access tokens
in cookies.

Modify `loopback.token` to skip token lookup when the request already
contains `accessToken` property. This is in line with other
connect-based middleware like `cookieParser` or `json`.
2014-05-21 15:22:36 +02:00
..
rest.js Modify `loopback.rest` to include `loopback.token` 2014-05-21 15:22:36 +02:00
status.js Add status middleware 2013-11-19 12:54:30 -08:00
token.js Modify `loopback.rest` to include `loopback.token` 2014-05-21 15:22:36 +02:00
urlNotFound.js Add loopback.urlNotFound() middleware. 2013-11-19 20:27:49 +01:00