Docs example

This commit is contained in:
Imbus 2024-03-18 19:59:14 +01:00
parent fe6942aa81
commit 2aade5d2fe
2 changed files with 28 additions and 3 deletions

View file

@ -16,9 +16,10 @@ import (
// @Tags User
// @Accept json
// @Produce json
// @Success 200 {string} string "User added"
// @Failure 400 {string} string "Bad request"
// @Failure 500 {string} string "Internal server error"
// @Param {string} body types.NewUser true "User to register"
// @Success 200 {string} string "User added"
// @Failure 400 {string} string "Bad request"
// @Failure 500 {string} string "Internal server error"
// @Router /api/register [post]
func (gs *GState) Register(c *fiber.Ctx) error {
u := new(types.NewUser)