Created
February 23, 2017 12:12
-
-
Save tomitrescak/883d4e887df22a223a9502f3a566fb7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const app = express(); | |
const historyAPIFallback = require('connect-history-api-fallback'); | |
const SnapHandler = require('luis').handler; | |
app.use('/snapshot', SnapHandler); | |
app.use(historyAPIFallback()); | |
// make sure that server.js is in your project root | |
app.use(express.static('louis')); | |
app.listen(9001, function () { | |
console.log('Example app listening to you on port 9001!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment