Initial commit
This commit is contained in:
6
app/controllers/api/projects_controller.rb
Normal file
6
app/controllers/api/projects_controller.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class Api::ProjectsController < Api::ApiController
|
||||
def index
|
||||
projects = Current.user.accessible_projects_for(Current.account)
|
||||
render jsonapi: projects
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user