feat: implement geometry and project management modules with associated controllers, services, and routes
This commit is contained in:
@@ -10,5 +10,6 @@ func GeometryRoutes(router fiber.Router, geometryController *controllers.Geometr
|
||||
geometry := router.Group("/geometries")
|
||||
geometry.Get("/", geometryController.SearchGeometries)
|
||||
geometry.Get("/entity", geometryController.SearchGeometriesByEntityName)
|
||||
geometry.Get("/bound-with/:bound_with", geometryController.GetGeometriesByBoundWith)
|
||||
geometry.Get("/:id", geometryController.GetGeometryById)
|
||||
}
|
||||
|
||||
@@ -66,6 +66,24 @@ func ProjectRoutes(
|
||||
controller.ChangeOwner,
|
||||
)
|
||||
|
||||
route.Post(
|
||||
"/:id/lock",
|
||||
middlewares.JwtAccess(userRepo),
|
||||
controller.LockProject,
|
||||
)
|
||||
|
||||
route.Post(
|
||||
"/:id/unlock",
|
||||
middlewares.JwtAccess(userRepo),
|
||||
controller.UnlockProject,
|
||||
)
|
||||
|
||||
route.Post(
|
||||
"/:id/heartbeat",
|
||||
middlewares.JwtAccess(userRepo),
|
||||
controller.HeartbeatProject,
|
||||
)
|
||||
|
||||
route.Get(
|
||||
"/:id",
|
||||
middlewares.JwtAccess(userRepo),
|
||||
|
||||
Reference in New Issue
Block a user