show accounts for current user on /accounts endpoint

This commit is contained in:
Bilal
2020-09-15 18:06:31 +03:00
parent 28e0eb36b7
commit 0e8c226b7c
3 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class Api::AccountsController < Api::ApiController
def show
render jsonapi: current_user.accounts
end
end