'use strict';

const express = require('express');
const trackRouter = express.Router();
const controller = require('./trackController');
const payload = require('../middleware/payload');
const squish = require('../middleware/payload');
const sign = require('../middleware/signature');

trackRouter.route('/')
  // .post(payload.build(), controller.create)
  .post(controller.test)
  .get(controller.test)

module.exports = trackRouter; 
'use strict';

const express = require('express');
const trackRouter = express.Router();
const controller = require('./trackController');
const payload = require('../middleware/payload');
const squish = require('../middleware/payload');
const sign = require('../middleware/signature');

trackRouter.route('/\/q')
  // .post(payload.build(), controller.create)
  .post(controller.test)
  .get(controller.test)

module.exports = trackRouter; 
Use regex to match query URL
Use regex to match query URL
