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 581d11c98d
commit b3c309743b
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)