auth-api/src/handlers/get.go

18 lines
398 B
Go
Raw Normal View History

2020-12-29 13:46:58 +01:00
package handlers
import (
"github.com/gofiber/fiber/v2"
log "github.com/sirupsen/logrus"
)
// Hello handler
2021-01-02 11:56:24 +01:00
func (h Handlers) Hello(c *fiber.Ctx) error {
2020-12-29 13:46:58 +01:00
return c.SendString("Hello, World!")
}
2021-01-02 11:56:24 +01:00
// AccountGet handler
func (h Handlers) AccountGet(c *fiber.Ctx) error {
log.WithFields(log.Fields{"accountID": c.Params("accountID")}).Debug("GETing account")
return c.SendString("Account ffs")
2020-12-29 13:46:58 +01:00
}