const express = require('express');
const hbs = require('hbs');
const bodyParser = require('body-parser');
const optimizely = require('optimizely-server-sdk');
const ObjectID = require('mongodb').ObjectID;

// local packages
let {mongoose} = require('./../../db/mongoose');
let {Product} = require('./../../models/products');
let {datafile} = require('./../../optly_shop_datafile');
let {uuid} = require('./../../helpers/uuid');
let {priceDiscount} = require('./../../helpers/price_discount');

// Global variable where userID for Optly experiments will be stored
let userID;

// instantiate Express.js
const checkout2 = express();

checkout2.get('/shop/cart', (req, res) => {
    res.send('This is checkout version 1');
});

checkout2.get('/shop/checkout', (req, res) => {
    res.send('This is the checkout page');
});
