location update optimized with schema changes and geoJson Compatability testing endpoint with encrypted key authorization
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export { default as UserRoutes } from "./user.route";
|
||||
export { default as ProfileRoutes } from "./profile.route";
|
||||
export { default as AdminRoutes } from "./admin.route";
|
||||
export { default as LocationRoutes } from "./location.route";
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { Router } from "express";
|
||||
import { authorizeWithEncryptedKey } from "../middlewares/jwt.middleware";
|
||||
import { createLocationController } from "../controllers/location.controller";
|
||||
|
||||
const router = new Router();
|
||||
|
||||
router.post(
|
||||
"/create",
|
||||
authorizeWithEncryptedKey("location", "write"),
|
||||
createLocationController,
|
||||
);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user