text: const express = require('express');
  const bodyparser = require('body-parser');
  const path = require('path');
  
  const adminRoutes = require('./routes/admin');
  const shopRoutes = require('./routes/shop');
  
  const app = express();
  
  app.use(bodyparser.urlencoded({ extended: false }));
  app.use(express.static(path.join(__dirname, 'public')));
  
  app.use('/admin', adminRoutes);
  app.use(shopRoutes);
  
  // this will only run when any of the above routes are not matched
  app.use('/', (req, res, next) => {
      res.status(404).sendFile(path.join(__dirname, 'views', '404.html'));
  });
  
  app.listen(3000);