module Spree module Api module Returnly class ApiController < Spree::Api::BaseController before_filter :set_headers def set_headers response.headers['X-Returnly-Extension-Version'] = Solidus::Returnly::VERSION response.headers['X-Returnly-Extension-Platform-Qualifier'] = Spree.solidus_version end end end end end