Sha256: 5a92a92e7051cd7be9b2d66ef8714168609fb1233501de4bee46206832179907

Contents?: true

Size: 451 Bytes

Versions: 72

Compression:

Stored size: 451 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    def extface_for(resource, options = {})
      mapping = Extface.add_mapping(resource, options)
      mount Extface::Engine, at: mapping.mount_point, as: [options[:as],:extface].compact.join('_')
      get "#{mapping.mount_point}/:device_uuid", to: "extface/handler#pull", as: :extface_device_pull
      get "#{mapping.mount_point}/jobs/:id", to: "extface/jobs#show", as: :extface_job
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
extface-0.7.3 lib/extface/routes.rb
extface-0.7.2 lib/extface/routes.rb
extface-0.7.1 lib/extface/routes.rb
extface-0.7.0 lib/extface/routes.rb
extface-0.6.9 lib/extface/routes.rb
extface-0.6.8 lib/extface/routes.rb
extface-0.6.7 lib/extface/routes.rb
extface-0.6.6 lib/extface/routes.rb
extface-0.6.5 lib/extface/routes.rb
extface-0.6.4 lib/extface/routes.rb
extface-0.6.3 lib/extface/routes.rb
extface-0.6.2 lib/extface/routes.rb
extface-0.6.1 lib/extface/routes.rb
extface-0.6.0 lib/extface/routes.rb
extface-0.5.9 lib/extface/routes.rb
extface-0.5.8 lib/extface/routes.rb
extface-0.5.7 lib/extface/routes.rb
extface-0.5.6 lib/extface/routes.rb
extface-0.5.5 lib/extface/routes.rb
extface-0.5.4b lib/extface/routes.rb