34 lines
459 B
Go
34 lines
459 B
Go
|
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
|
||
|
}
|