'use strict'
const express = require('express')
const bodyParser = require('body-parser')
const hbs = require('express-handlebars')
const html = require('html')
const app = express()
const api = require('./routes')
const path = require('path')
const cors = require('cors')
const fs = require('fs');
const router = express.Router();
app.use(cors());
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Headers', 'Authorization, X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Allow-Request-Method');