{"size": 761, "ext": "js", "max_stars_repo_path": "flight_app/server/routes/feed.js", "max_stars_repo_name": "zrusev/Flight_System", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "flight_app/server/routes/feed.js", "max_issues_repo_name": "zrusev/Flight_System", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "flight_app/server/routes/feed.js", "max_forks_repo_name": "zrusev/Flight_System", "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": 47.5625, "max_line_length": 82, "alphanum_fraction": 0.7634691196}
const router = require('express').Router();
const { body } = require('express-validator/check');
const feedController = require('../controllers/feed');
const isAuth = require('../middleware/is-auth');

router.get('/flights/page/:page/direction/:direction', feedController.getFlights);
router.get('/flights/flightName/:searchValue', feedController.getFlightByName);
router.get('/flights/flightId/:flightId', feedController.getSeats);
router.get('/flights/:id/codeshares/:flightName', feedController.getFlightById);

router.post('/tickets/create', isAuth, feedController.createTicket);

// router.delete('/post/delete/:postId', isAuth ,feedController.deletePost);
// router.put('/post/update/:postId', isAuth ,feedController.updatePost);

module.exports = router;