lib/picky/sinatra/index_actions.rb in picky-4.12.7 vs lib/picky/sinatra/index_actions.rb in picky-4.12.8

- old
+ new

@@ -9,11 +9,11 @@ # * 404 if the index cannot be found. # * 400 if no data or item id has been provided in the data. # # Note: 200 returns no data yet. # - base.post '/' do + base.put '/' do index_name = params['index'] begin index = Picky::Indexes[index_name.to_sym] data = params['data'] return 400 unless data @@ -46,6 +46,6 @@ end end end -end \ No newline at end of file +end