posts

package
v0.0.0-...-1bc6f7f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPosts

func GetAllPosts(c *fiber.Ctx) error

*HTTP GET* - Gets all the posts from the database

func SetupPostRoutes

func SetupPostRoutes(db *gorm.DB, group fiber.Router)

Types

type Post

type Post struct {
	ID        uint
	Title     string
	Publisher user.User
	Tags      string
	Links     string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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