Implements api routes and api key auth

CAUTION: Temporary api key is hardcoded, must be changed
This commit is contained in:
Dennis Schoepf 2024-04-26 17:23:55 +02:00
parent 47dab069c3
commit c973859f7f
3 changed files with 83 additions and 0 deletions

9
internal/api/users.go Normal file
View file

@ -0,0 +1,9 @@
package api
import (
"github.com/gofiber/fiber/v2"
)
func FetchAllUsersHandler(ctx *fiber.Ctx) error {
return ctx.JSON(&fiber.Map{"users": "none"})
}