/*
 * Retro Game Night
 * Copyright (c) 2015 Sasha Fahrenkopf, Cameron White
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */
import express from 'express'
import config from './config'

const app = express()

app.set('port', config.server.location.port)

app.get('/', (req, res) => {
  res.sendfile('build/index.html')
})

app.get('/app.js', (req, res) => {
  res.sendfile('build/app.js')
})

app.use('/assets', express.static('build/assets'))
app.use('/css', express.static('build/css'))
app.use('/fonts', express.static('build/fonts'))

app.listen(app.get('port'), () => {
  console.log('rgn-ui listening on port %s', app.get('port'))
})
