func getProjects(params martini.Params, r render.Render, m model.Model) { if name := params["name"]; name != "" { r.JSON(200, m.User(name).Projects) } else { r.JSON(200, m.User("zephyyrr").Projects) } }
func getUser(params martini.Params, r render.Render, m model.Model) { r.JSON(200, m.User(params["name"])) }
func getUsers(r render.Render, m model.Model) { r.JSON(200, m.Users()) }