implemented new error handler, added getContacts route

This commit is contained in:
slawk0
2025-02-06 19:38:21 +01:00
parent ca2debca31
commit 79357c8ae2
7 changed files with 243 additions and 101 deletions

View File

@@ -24,4 +24,5 @@ func SetupRoutes(app *fiber.App) {
contacts := chat.Group("/contacts", middleware.Protected(), logger.New())
contacts.Delete("/:contact_id/:conversation_id", handlers.DeleteContact)
contacts.Post("/:contact_username", handlers.InsertContact)
contacts.Get("/", handlers.GetContacts)
}