Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIHandler ¶
func NewAPIHandler(db DBProvider, log *logger.Log, authorizer auth.Authenticator) (http.Handler, error)
Types ¶
type APIHandler ¶
type APIHandler struct {
// contains filtered or unexported fields
}
func (*APIHandler) CreateNewPost ¶
func (a *APIHandler) CreateNewPost(w http.ResponseWriter, r *http.Request)
(POST /v1/posts
func (*APIHandler) GetAllPosts ¶
func (a *APIHandler) GetAllPosts(w http.ResponseWriter, r *http.Request)
(GET /v1/post
Click to show internal directories.
Click to hide internal directories.