This commit is contained in:
2021-01-02 11:56:24 +01:00
parent 39e5c84cf6
commit 96ab03a5fb
12 changed files with 301 additions and 120 deletions

View File

@@ -6,12 +6,12 @@ import (
)
// Hello handler
func Hello(c *fiber.Ctx) error {
func (h Handlers) Hello(c *fiber.Ctx) error {
return c.SendString("Hello, World!")
}
// UserGet handler
func UserGet(c *fiber.Ctx) error {
log.WithFields(log.Fields{"userID": c.Params("userID")}).Debug("GETing user")
return c.SendString("USER ffs")
// 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")
}