Permalink
Browse files

Updated with new example

  • Loading branch information...
1 parent ce5f89e commit 90202732190b9a9d600a068ad3fc650ff33e653c @serby committed Jan 30, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
@@ -31,10 +31,12 @@ A better solution is to use versionator!
Add versionator into your middleware stack before the static middleware:
app.version = '0.1.0';
+ var versionator = require('versionator');
+
app.configure(function() {
- app.use(versionator('v' + app.version))
+ app.use(versionator.createBasic(app.version).middleware('v' + app.version))
....
.use(express.static(__dirname + '/public', { maxAge: 2592000000 }));

0 comments on commit 9020273

Please sign in to comment.