Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Defaults = map[string]Route{
"Index": {
Method: "GET",
Path: "/",
},
"New": {
Method: "GET",
Path: "/new",
},
"Create": {
Method: "POST",
Path: "/",
},
"Edit": {
Method: "GET",
Path: "/:id/edit",
},
"Update": {
Method: "POST",
Path: "/:id",
},
"Destroy": {
Method: "DELETE",
Path: "/:id",
},
"Show": {
Method: "GET",
Path: "/:id",
},
}
Functions ¶
func CreateController ¶
func CreateController[Ctr ictr[Ctr]](ctr Ctr) func(fiber.Router)
Types ¶
type Controller ¶
type Controller[Ctr CtrBase] struct { // contains filtered or unexported fields }
func (Controller[Ctr]) Routes ¶
func (c Controller[Ctr]) Routes() map[string]Route
func (Controller[Ctr]) Setup ¶
func (c Controller[Ctr]) Setup(ctx *fiber.Ctx)
Click to show internal directories.
Click to hide internal directories.