text: const { createProxyMiddleware } = require('http-proxy-middleware');
  const express = require('express');
  const app = express();
  
  var cors = require('cors');
  
  app.use(cors({ origin: true }));
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  
  app.get('/info', (req, res, next) => {
    res.send('This is a proxy service');
  });
  
  app.use('/search', createProxyMiddleware({
    target: "https://www.google.com/",
    changeOrigin: true,
  }));
  
  //Error Section
  app.use((error, req, res, next) => {
    res.status(error.status);
    res.json({
      error: {
        message: error.message
      }
    })
  });
  
  app.listen(process.env.PORT || 3326,
    () => console.log("Server is running..."));
  