diff options
-rw-r--r-- | app/controllers/api/companies_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/companies_controller.rb b/app/controllers/api/companies_controller.rb index 21744de..fd72a8a 100644 --- a/app/controllers/api/companies_controller.rb +++ b/app/controllers/api/companies_controller.rb @@ -7,7 +7,7 @@ module Api skip_before_action :assert_master_role, only: %i[show index] def index - @companies = Company.all + @companies = Company.page(params[:page]) render json: serialized_collection.serializable_hash, status: 200 end |