index.js 413 字节
Newer Older
J
Jason Park 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
const compression = require('compression');
const history = require('connect-history-api-fallback');
const express = require('express');
const app = express();

const {
  apiEndpoint
} = require('../environment');

const frontend = require('./frontend');
//const backend = require('./backend');
//app.use(apiEndpoint, backend);
app.use(history());
app.use(compression());
app.use(frontend);

module.exports = app;