class Api::ProjectsController < Api::ApiController def index projects = Current.user.accessible_projects_for(Current.account) render jsonapi: projects end end