Sha256: f9650275fec27da6ea8ff125a66c1a84fcf87f209ffce745e16ba56fdf3033c2

Contents?: true

Size: 310 Bytes

Versions: 16

Compression:

Stored size: 310 Bytes

Contents

require 'rails/rfc6570'

module Xing
  module Controllers
    class RootResourcesController < ::Xing::Controllers::Base
      def index
        @resources = rfc6570_routes(ignore: %w(format), path_only: true)
        render :json => Xing::Serializers::RootResources.new(@resources)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
xing-backend-1.0.0.pre.beta lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.25 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.23 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.22 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.21 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.20 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.19 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.18 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.17 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.16 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.15 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.14 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.13 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.12 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.11 lib/xing/controllers/root_resources_controller.rb
xing-backend-0.0.10 lib/xing/controllers/root_resources_controller.rb