{"size": 434, "ext": "js", "max_stars_repo_path": "app/routes/vehicle.route.js", "max_stars_repo_name": "hirantha-designer/Node-Training-01", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/routes/vehicle.route.js", "max_issues_repo_name": "hirantha-designer/Node-Training-01", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/routes/vehicle.route.js", "max_forks_repo_name": "hirantha-designer/Node-Training-01", "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": 33.3846153846, "max_line_length": 71, "alphanum_fraction": 0.7603686636}
const express = require('express');
const router = express.Router();
const vehicleController = require('../controllers/vehicle.controller');


router.get('/', vehicleController.getAllVehicle );
router.get('/:id', vehicleController.getSingleVehicle );
router.post('/', vehicleController.createVehicle );
router.put('/', vehicleController.updateVehicle );
router.delete('/', vehicleController.deleteVehicle );


module.exports = router;