Permalink
Browse files

README - app.use(resty.middleware()) instead of app.use(resty())

  • Loading branch information...
1 parent 336db7c commit 8e55570ef9f7cfee1fceaba16e8534e4c61151b1 @angelini committed Jan 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -20,7 +20,7 @@ Simply require the middleware and tell connect to use it:
var resty = require('resty');
var app = connect.createServer();
- app.use(resty('/path/to/resources/folder'));
+ app.use(resty.middleware('/path/to/resources/folder'));
app.listen(8080);
Remember to add middleware for authentication and file serving, as resty only provides the routing for the API resources.

0 comments on commit 8e55570

Please sign in to comment.