feat: Add route to list accounts that belongs to a platform_app (#12140)

This PR creates a new route to list all accounts that a platform_app has access to.

Fixes: #12109
This commit is contained in:
Petterson
2025-08-11 16:23:05 -03:00
committed by GitHub
parent c31325e982
commit 81d8d3862d
4 changed files with 47 additions and 1 deletions

View File

@@ -1,4 +1,11 @@
class Platform::Api::V1::AccountsController < PlatformController
def index
@resources = @platform_app.platform_app_permissibles
.where(permissible_type: 'Account')
.includes(:permissible)
.map(&:permissible)
end
def show; end
def create