added contact suggestion route, code refactor

This commit is contained in:
slawk0
2025-02-06 21:57:44 +01:00
parent 915cc0c830
commit 51b426ba54
6 changed files with 65 additions and 11 deletions

View File

@@ -25,4 +25,5 @@ func SetupRoutes(app *fiber.App) {
contacts.Delete("/:contact_id/:conversation_id", handlers.DeleteContact)
contacts.Post("/:contact_username", handlers.InsertContact)
contacts.Get("/", handlers.GetContacts)
contacts.Get("/suggestions/:contactUsername", handlers.GetContactSuggestions)
}