Skip to content

Commit 4d060cc

Browse files
author
nicola
committed
absolute paths
1 parent ba19269 commit 4d060cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎lib/create-app.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var LdpMiddleware = require('./ldp-middleware');
1010
var proxy = require('./handlers/proxy')
1111
var IdentityProvider = require('./identity-provider');
1212
var vhost = require('vhost');
13+
var path = require('path');
1314
var corsSettings = cors({
1415
methods: [
1516
'OPTIONS', 'HEAD', 'GET',
@@ -66,10 +67,10 @@ function createApp (argv) {
6667
if (ldp.signup) {
6768
app.get('/', function (req, res) {
6869
res.set('Content-Type', 'text/html');
69-
res.sendFile('../static/signup.html');
70+
var signup = path.resolve('../static/signup.html')
71+
res.sendFile(signup);
7072
});
7173
}
72-
7374
app.use('/', LdpMiddleware(corsSettings));
7475

7576
return app;

0 commit comments

Comments
 (0)