Move pagination to helper function and implement filters+search in contacts

This commit is contained in:
William Bouzourène 2025-01-23 12:04:09 +01:00
parent f2afffd818
commit 5cb7d7ce32
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
5 changed files with 470 additions and 61 deletions

View file

@ -136,6 +136,7 @@ func main() {
// Contacts
app.Get("/contacts", controllers.Contacts)
app.Get("/contacts/export", controllers.ContactsExport)
app.Get("/contacts/:id<int;min(0)>", controllers.ContactShow)
app.Get("/contacts/add", controllers.ContactAdd)
app.Post("/contacts/add", controllers.ContactAdd)