Skip to content

Commit 6e41c39

Browse files
author
Ian Redpath
committed
serve static content from /public
1 parent 5480d95 commit 6e41c39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const port = process.env.OPENSHIFT_NODEJS_PORT || 3000;
55

66
let app = express();
77

8+
app.use(express.static(`${__dirname}/../public`));
9+
810
app.get('/hello', (req, res) => {
911
res.send('hello world');
1012
});

0 commit comments

Comments
 (0)