Implements api routes and api key auth
CAUTION: Temporary api key is hardcoded, must be changed
This commit is contained in:
parent
47dab069c3
commit
c973859f7f
3 changed files with 83 additions and 0 deletions
9
internal/api/users.go
Normal file
9
internal/api/users.go
Normal 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"})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue