Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(db bun.IDB) http.HandlerFunc
Handler lists what was removed: GET /api/trash?limit=&offset=, X-Total-Count counting every removal. @Summary List what was removed @Tags trash @Produce json @Param limit query integer false "removals in the page, all when left out or 0" @Param offset query integer false "removals skipped before the page" @Success 200 {array} listtrash.Trashed @Header 200 {integer} X-Total-Count "every removal, not only the page" @Failure 400 {object} respond.Failure @Failure 500 {object} respond.Failure @Router /api/trash [get]
Types ¶
This section is empty.