diff --git a/app/views/api/v1/bikes/create.json.jbuilder b/app/views/api/v1/bikes/create.json.jbuilder new file mode 100644 index 0000000..0b73e71 --- /dev/null +++ b/app/views/api/v1/bikes/create.json.jbuilder @@ -0,0 +1,4 @@ +json.bikes [@bike] do |bike| + json.array! bike + json.set! :href, api_bike_path(bike) +end