diff --git a/server/express.js b/server/express.js index 11a86b45..6a9880c9 100644 --- a/server/express.js +++ b/server/express.js @@ -6,8 +6,17 @@ import cookieParser from 'cookie-parser' import compress from 'compression' import cors from 'cors' import helmet from 'helmet' +import Template from './../template.js' //import the template.js file do its served at the root URL + const app = express() + +//serve template at the root URL +app.get('/', (req, res) => { + res.status(200).send(Template()) + }) + + //configure express app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: true }))