api

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureDatabase

func ConfigureDatabase(db *gorm.DB)

func CreateTodo

func CreateTodo(c *fiber.Ctx) error

func GetAllTodos

func GetAllTodos(c *fiber.Ctx) error

func SetupRoutes

func SetupRoutes(app *fiber.App)

func SetupTodoRoutes

func SetupTodoRoutes(group fiber.Router)

Types

type Todo

type Todo struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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