Permalink
Browse files

updated hello-world.js bogart example

  • Loading branch information...
1 parent 9eada0e commit 8c7a7a1a287c6e8b80dc2e5228d8c67a01f243ae @nrstott nrstott committed Dec 16, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 articles/bogart-couchdb/hello-world.js
@@ -1,9 +1,9 @@
var bogart = require('bogart');
-var app = bogart.router(function(get, post, update, destroy) {
- get('/', function() {
- return bogart.html('Hello World');
- });
+var router = bogart.router();
+
+router.get('/', function() {
+ return bogart.html('Hello World');
});
bogart.start(app);

0 comments on commit 8c7a7a1

Please sign in to comment.