Move pagination to helper function and implement filters+search in contacts
This commit is contained in:
parent
581d11c98d
commit
b3c309743b
5 changed files with 470 additions and 61 deletions
1
main.go
1
main.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue