{"size": 459, "ext": "js", "max_stars_repo_path": "server/routes/index.js", "max_stars_repo_name": "tiomno/ads-checkout-system", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/routes/index.js", "max_issues_repo_name": "tiomno/ads-checkout-system", "max_issues_repo_issues_event_min_datetime": "2022-02-12T01:25:34.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T03:34:17.000Z", "max_forks_repo_path": "server/routes/index.js", "max_forks_repo_name": "tiomno/ads-checkout-system", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 41.7272727273, "max_line_length": 78, "alphanum_fraction": 0.7625272331}
const express = require( 'express' )
const router = express.Router()
const customerController = require( '../controllers/customerController' )
const productController = require( '../controllers/productController' )
const { catchErrors } = require( '../handlers/errorHandlers' )

router.get( '/api/customers', catchErrors( customerController.getCustomers ) )
router.get( '/api/products', catchErrors( productController.getProducts ) )

module.exports = router
