Spree::Core::Engine.routes.draw do namespace :api, defaults: { format: 'json' } do post '/returnly/refunds/:order_id/estimate', to: 'returnly/refunds#estimate' post '/returnly/refunds/:order_id', to: 'returnly/refunds#create' get '/returnly/version', to: 'returnly/version#index' end end