{"size": 793, "ext": "js", "max_stars_repo_path": "components/controllers/api/v1/products/products.api.v1.controllers.js", "max_stars_repo_name": "macroramesh6/vtlab_challenge_node", "max_stars_repo_stars_event_min_datetime": "2021-06-25T19:37:51.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-25T19:46:29.000Z", "max_issues_repo_path": "components/controllers/api/v1/products/products.api.v1.controllers.js", "max_issues_repo_name": "macroramesh6/vtlab_challenge_node", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "components/controllers/api/v1/products/products.api.v1.controllers.js", "max_forks_repo_name": "macroramesh6/vtlab_challenge_node", "max_forks_repo_forks_event_min_datetime": "2021-05-21T19:24:55.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T11:37:26.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 7, "avg_line_length": 33.0416666667, "max_line_length": 84, "alphanum_fraction": 0.6771752837}

// ------------------ imports ------------------
import express from 'express';
import { responses } from '@/router/globalMiddlewares/response.middlewares';
import { handler } from '@/router/globalMiddlewares/fnapply.middlewares';
import { getValidator } from 'libs/validator/validator';
import validations from '@/controllers/api/v1/products/products.api.v1.validations';
import productsCommonServices from '@/services/products/common.products.services';

// ------------------ init router --------------

const router = express.Router()


// jobs/tracking/:shortId
router.route('/')
  .get(
  (req, res, next) => handler(getValidator, req, res, next, validations['mainGet']),
  (req, res, next) => responses(productsCommonServices.find, req, res, next))


// export
module.exports = router
