index.js 293 B

1234567891011121314
  1. 'use strict'
  2. import express from 'express'
  3. import routes from './routes'
  4. import { apiConfig } from '../config'
  5. const app = express()
  6. app.listen(apiConfig.port, () => {
  7. console.log('The server was started on http://localhost:' + apiConfig.port)
  8. })
  9. app.use(apiConfig.routePrefix, routes)