- Update
r
routing to use an argument builder API rather than a function call builder API to make things more concise (BREAKING CHANGE)
- Move squirrel related stuff out of model and into squtil (BREAKING CHANGE)
- Add
paginate
to provide simplified data access with paginating, search, filtering and sorting
- A bunch of other minor improvements and fixes
Routing Migration
// before
router.WithRole(auth.RoleAny, func(r *r.RoleRouter) {
r.Add("GET", "/api/project/screenshot", project.GetScreenshotHandler)
})
// after
router.Add("GET", "/api/project/screenshot", project.GetScreenshotHandler, auth.RoleAny)
// or
router.Add("GET", "/api/project/screenshot", auth.RoleAny, project.GetScreenshotHandler)