Documentation ¶
Index ¶
- func EnsureOID(oid primitive.ObjectID) primitive.ObjectID
- func HandleGet(w http.ResponseWriter, r *http.Request)
- func HandleIndex(w http.ResponseWriter, r *http.Request)
- func HandlePost(w http.ResponseWriter, r *http.Request)
- func NewListResponse(status int, ents *[]theme.Entity) []render.Renderer
- func Register(r *chi.Mux)
- type ApiResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleIndex ¶
func HandleIndex(w http.ResponseWriter, r *http.Request)
func HandlePost ¶
func HandlePost(w http.ResponseWriter, r *http.Request)
Types ¶
type ApiResponse ¶
func NewApiResponse ¶
func NewApiResponse(status int, ent *theme.Entity) *ApiResponse
func (*ApiResponse) Render ¶
func (a *ApiResponse) Render(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.