{"size": 642, "ext": "js", "max_stars_repo_path": "src/routes/v1/vasMessage.route.js", "max_stars_repo_name": "andyasne/Shemeta-USSD-Application", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/routes/v1/vasMessage.route.js", "max_issues_repo_name": "andyasne/Shemeta-USSD-Application", "max_issues_repo_issues_event_min_datetime": "2021-05-19T14:24:08.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-19T14:24:08.000Z", "max_forks_repo_path": "src/routes/v1/vasMessage.route.js", "max_forks_repo_name": "andyasne/Shemeta-USSD-Application", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 33.7894736842, "max_line_length": 103, "alphanum_fraction": 0.8068535826}
const express = require('express');
const vasMessageController = require('../../controllers/vasMessage.controller');

const router = express.Router();

router.route('/').post(vasMessageController.createVASMessage).get(vasMessageController.getVASMessages);

router
  .route('/:vasMessageId')
  .get(vasMessageController.getVASMessage)
  .patch(vasMessageController.updateVASMessage)
  .delete(vasMessageController.deleteVASMessage);

router.route('/NextVASMessage/:currentVasMessageOrder').get(vasMessageController.getNextVASMessage);

router.route('/uploadVASMessages').post(vasMessageController.uploadVASMessages);

module.exports = router;
