Skip to content

Commit

Permalink
pass app in createServer (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola authored and Andrei committed May 16, 2016
1 parent bfda346 commit f703be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/create-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ var SolidWs = require('solid-ws')
var debug = require('./debug')
var createApp = require('./create-app')

function createServer (argv) {
function createServer (argv, app) {
argv = argv || {}
var app = express()
app = app || express()
var ldpApp = createApp(argv)
var ldp = ldpApp.locals.ldp
var mount = argv.mount || '/'
Expand Down

0 comments on commit f703be0

Please sign in to comment.