Documentation ¶
Index ¶
- type Handlers
- func (hs *Handlers) APILogin(c echo.Context) error
- func (hs Handlers) APIPagesCreate(c echo.Context) error
- func (hs Handlers) APIPagesDelete(c echo.Context) error
- func (hs Handlers) APIPagesIndex(c echo.Context) error
- func (hs Handlers) APIPagesUpdate(c echo.Context) error
- func (hs Handlers) APIPostsCreate(c echo.Context) error
- func (hs Handlers) APIPostsDelete(c echo.Context) error
- func (hs Handlers) APIPostsGet(c echo.Context) error
- func (hs Handlers) APIPostsIndex(c echo.Context) error
- func (hs Handlers) APIPostsTitles(c echo.Context) error
- func (hs Handlers) APIPostsUpdate(c echo.Context) error
- func (hs Handlers) Homepage(c echo.Context) error
- func (hs Handlers) Page(c echo.Context) error
- func (hs Handlers) Post(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
Handlers provides common data for our handlers
func (Handlers) APIPagesCreate ¶
APIPagesCreate creates a new page binding
func (Handlers) APIPagesDelete ¶
APIPagesDelete deletes a page binding
func (Handlers) APIPagesIndex ¶
APIPagesIndex shows all pages
func (Handlers) APIPagesUpdate ¶
APIPagesUpdate updates a page
func (Handlers) APIPostsCreate ¶
APIPostsCreate adds a new post for the website
func (Handlers) APIPostsDelete ¶
APIPostsDelete deletes a post
func (Handlers) APIPostsGet ¶
APIPostsGet fetches a single post by its id
func (Handlers) APIPostsIndex ¶
APIPostsIndex fetches all posts that were added
func (Handlers) APIPostsTitles ¶
APIPostsTitles gets titles of posts for select elements
func (Handlers) APIPostsUpdate ¶
APIPostsUpdate updates a post over JSON
Click to show internal directories.
Click to hide internal directories.