func (api *Api) serviceList(rw http.ResponseWriter, r *http.Request, user *account.User) { services, _ := user.Services() Ok(rw, CollectionSerializer{Items: services, Count: len(services)}) }