new changes in hub api messages

This commit is contained in:
2026-07-07 12:47:26 +05:30
parent 707323b68c
commit 808ac953a1
4 changed files with 500 additions and 2 deletions

View File

@@ -273,6 +273,13 @@ func RegisterRoutes(app *fiber.App, cfg *config.Config) {
hubAuth.Get("/rider-routes", controllers.GetAllRiderRoutes)
hubAuth.Get("/milers/:id/route", controllers.GetMilerRoute)
hubAuth.Get("/messages", controllers.GetHubMessages)
hubAuth.Get("/messages/:id", controllers.GetHubMessageThread)
hubAuth.Post("/messages/:id", controllers.SendHubMessage)
hubAuth.Patch("/messages/:id/read", controllers.MarkHubMessagesRead)
hubAuth.Get("/report", controllers.GetHubReport)
// Redis active user caching utilities
redisUsers := api.Group("/utils/users/redis")
redisUsers.Post("/", controllers.CreateUserRedis)