Skip to content
This repository has been archived by the owner on Jan 20, 2019. It is now read-only.

Commit

Permalink
Fix routes being in separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
skalnik committed Dec 31, 2011
1 parent 6422182 commit 7faab45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.coffee
@@ -1,3 +1,3 @@
exports.actions = (app, argv, options) ->
module.exports = (app) ->
app.get '/', (req, res) ->
res.json {response: 'Success!'}, 200
3 changes: 2 additions & 1 deletion bin/server
@@ -1,8 +1,9 @@
express = require 'express'
routes = require '../app'

app = express.createServer();

routes = require('../app')(app)

app.configure ->
app.use express.logger()
app.use express.bodyParser()
Expand Down

0 comments on commit 7faab45

Please sign in to comment.