text: const router = require("express").Router();
  const eventController = require("../../controllers/eventController");
  
  
  router.route("/")
  
  .post(eventController.create);
  
  
  router.route("/:userName")
  .get(eventController.findAll)
  
  
  
  router.route("/:id")
  
  .delete(eventController.remove)
  
  
  
  module.exports=router; 