{"size": 447, "ext": "js", "max_stars_repo_path": "content/theme/routes/products.js", "max_stars_repo_name": "Fox-Design-Agency/AtaraxyClothing_Aristos", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "content/theme/routes/products.js", "max_issues_repo_name": "Fox-Design-Agency/AtaraxyClothing_Aristos", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "content/theme/routes/products.js", "max_forks_repo_name": "Fox-Design-Agency/AtaraxyClothing_Aristos", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.2857142857, "max_line_length": 71, "alphanum_fraction": 0.7337807606}
const express = require("express");
const router = express.Router();
const productController = require("../controllers/product_controller");
/*
* GET  all products
*/
router.get("/", productController.allProducts);

/*
* GET  products by category
*/
router.get("/:category", productController.productByCategory);

/*
* GET  product details
*/
router.get("/:category/:product", productController.singleProduct);

//Exports
module.exports = router;
