Skip to content

Commit

Permalink
modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanttb committed Apr 26, 2013
1 parent a693a3a commit 2f92baa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions connect/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var connect = require( "connect" );
var myMod = require( "./mymod.js" );

connect( )
.use( connect.logger( ) )
.use( myMod )
.listen( 3001 );
4 changes: 4 additions & 0 deletions connect/mymod.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// mymod.js
module.exports = function( req, res, next ) {
res.end( "ohai module!" );
}

0 comments on commit 2f92baa

Please sign in to comment.