🚚 Move api path

This commit is contained in:
2024-07-16 17:01:27 +08:00
parent ee7736b261
commit 768c809cbb
6 changed files with 5 additions and 119 deletions

View File

@ -4,8 +4,8 @@ import (
"github.com/gofiber/fiber/v2"
)
func MapAPIs(app *fiber.App) {
api := app.Group("/api").Name("API")
func MapAPIs(app *fiber.App, baseURL string) {
api := app.Group(baseURL).Name("API")
{
api.Get("/users/me", getUserinfo)
api.Get("/users/:accountId", getOthersInfo)