Skip to content

Commit 74aa282

Browse files
authored
return data as object instead of array (#638)
1 parent c69cc94 commit 74aa282

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/app/controllers/api/v1/countries_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class CountriesController < ApplicationController
44
skip_before_action :authenticate_user!
55

66
def index
7-
render json: Country.all, each_serializer: CountrySerializer, root: false
7+
render json: Country.all, each_serializer: CountrySerializer
88
end
99

1010
def show

0 commit comments

Comments
 (0)