Permalink
Browse files

simplified hello-world example

  • Loading branch information...
1 parent 52b4f10 commit c57b3096f75b83913a8594dc383876966d04432f @nrstott committed Nov 14, 2011
Showing with 1 addition and 18 deletions.
  1. +1 −18 examples/hello-world.js
View
@@ -4,23 +4,6 @@ var config = function(show, create, update, destroy) {
show('/hello/:name', function(req, name) {
return bogart.html('Hello '+name);
});
-
- show('/stream', function(req) {
- var streamer = bogart.stream();
-
- setInterval(function() {
- var currentTime = new Date();
- streamer(currentTime.getHours()+':'+currentTime.getMinutes()+':'+currentTime.getSeconds()+"\n");
- }, 10);
-
- setTimeout(function() {
- streamer.end();
- }, 10000);
-
- return streamer.respond();
- });
};
-
-
-bogart.start(bogart.router(config), {port:1337});
+bogart.start(bogart.router(config));

0 comments on commit c57b309

Please sign in to comment.