const express = require('express')
const path = require('path')

const app = express()

app.get('/', function(req, res) {
  res.sendFile(path.join(__dirname, 'public', 'index.html'))
})

app.use(express.static(path.join(__dirname, 'public')))

app.listen(3000, function() {
  console.log('spotty-features listening on port 3000')
})

const express = require('express')
const path = require('path')

const app = express()

app.get('/', function(req, res) {
  res.sendFile(path.join(__dirname, 'public', 'index.html'))
})

app.use(express.static(path.join(__dirname, 'public')))

app.get('*', function(req, res) {
  res.sendFile(path.join(__dirname, 'public', 'index.html'))
})

app.listen(3000, function() {
  console.log('spotty-features listening on port 3000')
})

Make all URLs render index.html
Make all URLs render index.html

So React can handle the routing.
