Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LookupGalleryByName = route("GET", "/galleries/lookup/name/{Name}") LookupGalleryStackByName = route("GET", "/galleries/{GalleryID}/lookup/stack-name/{Name}") ShowGallery = route("GET", "/galleries/{GalleryID}") UploadImage = route("POST", "/galleries/{GalleryID}/stacks") ReplaceImage = route("PUT", "/galleries/{GalleryID}/stacks/{StackID}") UpdateStack = route("PATCH", "/galleries/{GalleryID}/stacks/{StackID}") DeleteStack = route("DELETE", "/galleries/{GalleryID}/stacks/{StackID}") TagStack = route("POST", "/galleries/{GalleryID}/stacks/{StackID}/tags") UntagStack = route("DELETE", "/galleries/{GalleryID}/stacks/{StackID}/tags/{Tags}") SortGallery = route("PATCH", "/galleries/{GalleryID}/sorting") GalleryReadRoutes = [...]Route{ LookupGalleryByName, LookupGalleryStackByName, ShowGallery, } GalleryWriteRoutes = [...]Route{ UploadImage, ReplaceImage, UpdateStack, DeleteStack, TagStack, UntagStack, SortGallery, } GalleryRoutes = [...]Route{ LookupGalleryByName, LookupGalleryStackByName, ShowGallery, UploadImage, ReplaceImage, UpdateStack, DeleteStack, TagStack, UntagStack, } )
Gallery routes
View Source
var ( LookupShelfByName = route("GET", "/shelfs/lookup/name/{Name}") ShowShelf = route("GET", "/shelfs/{ShelfID}") UploadDocument = route("POST", "/shelfs/{ShelfID}/documents") ReplaceDocument = route("PUT", "/shelfs/{ShelfID}/documents/{DocumentID}") UpdateDocument = route("PATCH", "/shelfs/{ShelfID}/documents/{DocumentID}") DeleteDocument = route("DELETE", "/shelfs/{ShelfID}/documents/{DocumentID}") TagDocument = route("POST", "/shelfs/{ShelfID}/documents/{DocumentID}/tags") UntagDocument = route("DELETE", "/shelfs/{ShelfID}/documents/{DocumentID}/tags/{Tags}") DocumentReadRoutes = [...]Route{ LookupShelfByName, ShowShelf, } DocumentWriteRoutes = [...]Route{ UploadDocument, ReplaceDocument, UpdateDocument, DeleteDocument, TagDocument, UntagDocument, } DocumentRoutes = [...]Route{ LookupShelfByName, ShowShelf, UploadDocument, ReplaceDocument, UpdateDocument, DeleteDocument, TagDocument, UntagDocument, } )
Document routes
View Source
var All = route("*", "*")
All is a wildcard for all routes.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Routes)
Option is a Routes option.
func Middleware ¶
Middleware adds middleware to the given routes. If routes is empty, the middleware is added to all routes.
type Routes ¶
type Routes struct {
// contains filtered or unexported fields
}
Routes configures the routes for one of the media components.
Click to show internal directories.
Click to hide internal directories.