recipes

package
v0.0.0-...-6621fb8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecipeController

type RecipeController struct {
	// contains filtered or unexported fields
}

func New

func New(router *gin.Engine, recipeRepo repo.RecipeRepo) RecipeController

New sets up and returns a new RecipeController

func (RecipeController) Create

func (c RecipeController) Create(ctx *gin.Context)

Create adds a new recipe to the database

func (RecipeController) Get

func (c RecipeController) Get(ctx *gin.Context)

Get finds a recipe by its slug

func (RecipeController) Update

func (c RecipeController) Update(ctx *gin.Context)

Update updates an existing recipe in the database

Jump to

Keyboard shortcuts

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