added proper types to structs, return empty arrays instead of null
This commit is contained in:
@@ -21,7 +21,7 @@ func SetupRoutes(app *fiber.App) {
|
||||
auth.Get("/validate", middleware.Protected(), handlers.ValidateToken)
|
||||
|
||||
// Contacts group
|
||||
contacts := chat.Group("/contact", middleware.Protected(), logger.New())
|
||||
contacts := chat.Group("/contacts", middleware.Protected(), logger.New())
|
||||
contacts.Delete("/:contactID/:conversation_id", handlers.DeleteContact)
|
||||
contacts.Post("/:contactUsername", handlers.InsertContact)
|
||||
contacts.Get("/", handlers.GetContacts)
|
||||
|
||||
Reference in New Issue
Block a user