{"size": 640, "ext": "js", "max_stars_repo_path": "backend/routes/event.js", "max_stars_repo_name": "VMAG-combat/Distress-Management-System", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "backend/routes/event.js", "max_issues_repo_name": "VMAG-combat/Distress-Management-System", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "backend/routes/event.js", "max_forks_repo_name": "VMAG-combat/Distress-Management-System", "max_forks_repo_forks_event_min_datetime": "2021-07-28T14:36:22.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-28T14:36:22.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 30.4761904762, "max_line_length": 156, "alphanum_fraction": 0.771875}
const express = require('express')

const { getEventsByUser, createEvent, getAllEvents, createEventPost, deleteEvent, registerEvent, searchEventsByParameter} = require('../controllers/event');

const router = express.Router();

router.get('/myevents/:userid', getEventsByUser);

router.get("/getAllEvents/:userid",getAllEvents);

router.get("/searchEvents/:field/:value/:userid",searchEventsByParameter);

router.post("/createEvent", createEvent);

router.post("/createEventPost", createEventPost);

router.post("/registerEvent/:userid/:eventid", registerEvent);

router.post("/deleteEvent/:eventid", deleteEvent);

module.exports = router;