update kontor-fiber to use Go Fiber v3
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
2026-09-20 02:08:56 +02:00
parent 8f5a384e89
commit ad09386a7a
40 changed files with 545 additions and 279 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import (
"log"
"time"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v3"
"github.com/google/uuid"
"github.com/uptrace/bun"
)
@@ -19,7 +19,7 @@ func SetupMediaRoutes(api fiber.Router) {
media.Post("/files", AddFile)
}
func GetAllFiles(c *fiber.Ctx) error {
func GetAllFiles(c fiber.Ctx) error {
var files []schema.MediaFile
var err error
var db *bun.DB
@@ -38,7 +38,7 @@ func GetAllFiles(c *fiber.Ctx) error {
return c.JSON(files)
}
func AddFile(c *fiber.Ctx) error {
func AddFile(c fiber.Ctx) error {
var err error
var db *bun.DB
ctx := context.Background()