Show resource list page to users.

This commit is contained in:
Yang Luo
2021-09-06 00:49:10 +08:00
parent f4a59de3a5
commit e4846807cd
6 changed files with 28 additions and 19 deletions

View File

@ -28,8 +28,9 @@ import (
func (c *ApiController) GetResources() {
owner := c.Input().Get("owner")
user := c.Input().Get("user")
c.Data["json"] = object.GetResources(owner)
c.Data["json"] = object.GetResources(owner, user)
c.ServeJSON()
}