panel/web/utils/handlers.go

34 lines
459 B
Go
Raw Normal View History

2024-11-03 21:33:08 +01:00
package utils
import "github.com/gofiber/fiber/v2"
var Handlers []interface{}
type GET interface {
Get(ctx *fiber.Ctx) error
}
type POST interface {
Post(ctx *fiber.Ctx) error
}
type PUT interface {
Put(ctx *fiber.Ctx) error
}
type DELETE interface {
Delete(ctx *fiber.Ctx) error
}
type HEAD interface {
Head(ctx *fiber.Ctx) error
}
type OPTIONS interface {
Options(ctx *fiber.Ctx) error
}
type PATCH interface {
Patch(ctx *fiber.Ctx) error
}