Documentation
¶
Overview ¶
Package handlers defines the method handlers for different routes
Package handlers defines the method handlers for different routes ¶
Package handlers defines the method handlers for different routes
Index ¶
- func CreateImage(c *fiber.Ctx) error
- func CreatePost(c *fiber.Ctx) error
- func DeleteImage(c *fiber.Ctx) error
- func DeletePost(c *fiber.Ctx) error
- func GetImage(c *fiber.Ctx) error
- func GetImages(c *fiber.Ctx) error
- func GetNewToken(c *fiber.Ctx) error
- func GetPost(c *fiber.Ctx) error
- func GetPostWithSource(c *fiber.Ctx) error
- func GetPosts(c *fiber.Ctx) error
- func UpdateImage(c *fiber.Ctx) error
- func UpdatePost(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateImage ¶
func CreateImage(c *fiber.Ctx) error
CreateImage creates a new image and adds its metadata to the database
func DeleteImage ¶
func DeleteImage(c *fiber.Ctx) error
DeleteImage deletes an image from the server and removes its metadata from the database
func GetImages ¶
func GetImages(c *fiber.Ctx) error
GetImages returns a list of all images on the server's metadata
func GetNewToken ¶
func GetNewToken(c *fiber.Ctx) error
GetNewToken returns a new JSON Web Token to a client
func GetPostWithSource ¶
func GetPostWithSource(c *fiber.Ctx) error
GetPostWithSource gets a single blog post with its source markdown
func UpdateImage ¶
func UpdateImage(c *fiber.Ctx) error
UpdateImage replaces and image and updates its metadata in the database
func UpdatePost ¶
func UpdatePost(c *fiber.Ctx) error
UpdatePost updates a blog post to contain the new contents provided
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.