show accounts for current user on /accounts endpoint
This commit is contained in:
5
app/controllers/api/accounts_controller.rb
Normal file
5
app/controllers/api/accounts_controller.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class Api::AccountsController < Api::ApiController
|
||||
def show
|
||||
render jsonapi: current_user.accounts
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user