Versions in this module Expand all Collapse all v0 v0.1.4 Feb 11, 2022 Changes in this version + var SortGallery = route("PATCH", "/galleries/{GalleryID}/sorting") v0.1.3 Aug 23, 2021 Changes in this version + var All = route("*", "*") + var DeleteDocument = route("DELETE", "/shelfs/{ShelfID}/documents/{DocumentID}") + var DeleteStack = route("DELETE", "/galleries/{GalleryID}/stacks/{StackID}") + var DocumentReadRoutes = [...]Route + var DocumentRoutes = [...]Route + var DocumentWriteRoutes = [...]Route + var GalleryReadRoutes = [...]Route + var GalleryRoutes = [...]Route + var GalleryWriteRoutes = [...]Route + var LookupGalleryByName = route("GET", "/galleries/lookup/name/{Name}") + var LookupGalleryStackByName = route("GET", "/galleries/{GalleryID}/lookup/stack-name/{Name}") + var LookupShelfByName = route("GET", "/shelfs/lookup/name/{Name}") + var ReplaceDocument = route("PUT", "/shelfs/{ShelfID}/documents/{DocumentID}") + var ReplaceImage = route("PUT", "/galleries/{GalleryID}/stacks/{StackID}") + var ShowGallery = route("GET", "/galleries/{GalleryID}") + var ShowShelf = route("GET", "/shelfs/{ShelfID}") + var TagDocument = route("POST", "/shelfs/{ShelfID}/documents/{DocumentID}/tags") + var TagStack = route("POST", "/galleries/{GalleryID}/stacks/{StackID}/tags") + var UntagDocument = route("DELETE", "/shelfs/{ShelfID}/documents/{DocumentID}/tags/{Tags}") + var UntagStack = route("DELETE", "/galleries/{GalleryID}/stacks/{StackID}/tags/{Tags}") + var UpdateDocument = route("PATCH", "/shelfs/{ShelfID}/documents/{DocumentID}") + var UpdateStack = route("PATCH", "/galleries/{GalleryID}/stacks/{StackID}") + var UploadDocument = route("POST", "/shelfs/{ShelfID}/documents") + var UploadImage = route("POST", "/galleries/{GalleryID}/stacks") + type Option func(*Routes) + func Disable(routes ...Route) Option + func Middleware(middleware func(http.Handler) http.Handler, routes ...Route) Option + func Middlewares(middlewares []func(http.Handler) http.Handler, routes ...Route) Option + type Route struct + Method string + Path string + type Routes struct + func New(opts ...Option) Routes + func (r Routes) Disabled(route Route) bool + func (r Routes) Install(router chi.Router, route Route, h http.Handler) + func (r Routes) Middleware(route Route) []func(http.Handler) http.Handler