import { Router } from "express"; import { authorize, authorizeWithEncryptedKey, } from "../middlewares/jwt.middleware"; import { createLocationController, getMyAssignedVenuesHandler, } from "../controllers/location.controller"; const router = new Router(); router.post( "/create", authorizeWithEncryptedKey("location", "write"), createLocationController, ); router.get( "/venues/assigned/me", authorize("generic", "generic"), getMyAssignedVenuesHandler, ); export default router;