Example #1
0
// @Title Get
// @Description get all Users
// @Success 200 {object} models.User
// @router / [get]
func (u *BookmarkcollectionController) GetAll() {
	users := models.GetAllUsers()
	u.Data["json"] = users
	u.ServeJson()
}
Example #2
0
// @Title Get
// @Description get all Users
// @Success 200 {object} models.User
// @router / [get]
func (u *UserController) GetAll() {
	users := models.GetAllUsers()
	u.Data["json"] = users
	u.ServeJson()
}