Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Create = struct { Routes crudl.Create[*model] FormName wc.FormArg }{ crudl.Create[*model]{ GET: Router.GET(createCategoryNS), POST: Router.POST(createCategoryNS + "-post/"), ID: html.ID(createCategoryNS), }, wc.NewFormArg("name").String(), }
View Source
var Delete = struct { Routes crudl.Delete[*model] Path1ID wc.PathArg }{ crudl.Delete[*model]{ DELETE: Router.GET(deleteCategoryNS + "/%s"), ID: html.ID(deleteCategoryNS), }, wc.NewPathArg("id"), }
View Source
var List = struct { Routes crudl.List[*model] }{ crudl.List[*model]{ GET: Router.GET(listCategoriesNS + "/"), ID: html.ID(listCategoriesNS), }, }
View Source
var Router = wc.New("Category", startModel, stopModel)
View Source
var Update = struct { Routes crudl.Update[*model] Path1ID wc.PathArg FormName wc.FormArg }{ crudl.Update[*model]{ GET: Router.GET(updateCategoryNS + "/%s"), PUT: Router.POST(updateCategoryNS + "-put/%s"), ID: html.ID(updateCategoryNS), }, wc.NewPathArg("id"), wc.NewFormArg("name").String(), }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.