text: const bodyParser = require("body-parser");
  const express = require("express");
  const handler = require("./httpHandler.js")
  const activityController = require("./activity_controller"); 
  
  
  const server = express();
  
  server.use(bodyParser.urlencoded());
  server.use(bodyParser.json());
  
  server.use(function(req, res, next) {
      res.header("Access-Control-Allow-Origin", "*");
      res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
      next();
    });
  
  server.use("/client",express.static("./jquery_mockup"))
  server.use("/old", handler.main);
  server.use("/activity", activityController.router);
      
  
  server.listen(3000);
  
  console.log("http://localhost:3000");