Oc Catalog Full Controllers
This commit is contained in:
@@ -52,7 +52,7 @@ func (o *DataController) GetAll() {
|
||||
// @Description find data by key word
|
||||
// @Param search path string true "the search you want to get"
|
||||
// @Success 200 {data} models.data
|
||||
// @router /:search [get]
|
||||
// @router /search/:search [get]
|
||||
func (o *DataController) Search() {
|
||||
search := o.Ctx.Input.Param(":search")
|
||||
o.Data["json"] = oclib.Search(search, oclib.LibDataEnum(oclib.DATA_RESOURCE))
|
||||
|
||||
Reference in New Issue
Block a user