Correct ish swagger docstring

This commit is contained in:
Imbus 2024-03-18 20:05:47 +01:00
parent 2aade5d2fe
commit 2be4afd0e0

View file

@ -15,12 +15,12 @@ import (
// @Description Register a new user
// @Tags User
// @Accept json
// @Produce json
// @Param {string} body types.NewUser true "User to register"
// @Produce plain
// @Param NewUser 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]
// @Router /register [post]
func (gs *GState) Register(c *fiber.Ctx) error {
u := new(types.NewUser)
if err := c.BodyParser(u); err != nil {