Skip to content

Commit

Permalink
Update simplest app example.
Browse files Browse the repository at this point in the history
  • Loading branch information
loarabia committed Jul 22, 2011
1 parent 14f7d91 commit 7cb0a2f
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions articles/express-mongodb/simple-express.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
var kiwi= require('kiwi')
// Module dependencies.
var express = require('express');

kiwi.require('express');
require('express/plugins')
var app = express.createServer();

configure(function(){
use(MethodOverride);
use(ContentLength);
use(Logger);
set('root', __dirname);
})
// Configuration

get('/', function(){
this.halt(200, "Hello World!");
})
// Routes
app.get('/', function(req, res) {
res.send('Hello World');
});

run();
app.listen(3000);

0 comments on commit 7cb0a2f

Please sign in to comment.