🚚 Move api path

This commit is contained in:
2024-07-16 17:02:16 +08:00
parent 33d6766f95
commit 83df95435c
2 changed files with 5 additions and 4 deletions

View File

@ -2,10 +2,10 @@ package api
import "github.com/gofiber/fiber/v2"
func MapAPIs(app *fiber.App) {
func MapAPIs(app *fiber.App, baseURL string) {
app.Get("/.well-known/destinations", getDestinations)
api := app.Group("/api").Name("API")
api := app.Group(baseURL).Name("API")
{
api.Get("/attachments/:id/meta", getAttachmentMeta)
api.Get("/attachments/:id", openAttachment)