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
Click to show internal directories.
Click to hide internal directories.