handlers

package
v0.0.0-...-df8baf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 10 Imported by: 0

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

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 CreatePost

func CreatePost(c *fiber.Ctx) error

CreatePost creates a new blog post

func DeleteImage

func DeleteImage(c *fiber.Ctx) error

DeleteImage deletes an image from the server and removes its metadata from the database

func DeletePost

func DeletePost(c *fiber.Ctx) error

DeletePost deletes a blog post

func GetImage

func GetImage(c *fiber.Ctx) error

GetImage returns a single image's metadata

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 GetPost

func GetPost(c *fiber.Ctx) error

GetPost gets a single blog post

func GetPostWithSource

func GetPostWithSource(c *fiber.Ctx) error

GetPostWithSource gets a single blog post with its source markdown

func GetPosts

func GetPosts(c *fiber.Ctx) error

GetPosts gets a list of all Blog Posts

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL