Sha256: 7f4dab830afa68948b2f40ee77ed2b7c0a1ed93f7c66164e5e15fc3a40ba4d24

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

Rapporteur::Engine.routes.draw do
  get("status.:format", {
    :as => :status,
    :constraints => {:format => "json"},
    :defaults => {:format => "json"},
    :to => "statuses#show"
  })
end

Rails.application.routes.draw do
  unless Rails.application.routes.named_routes.routes[:status]
    mount Rapporteur::Engine => "/"
    get("/status.:format", {
      :as => :status,
      :constraints => {:format => "json"},
      :defaults => {:format => "json"},
      :to => "statuses#show"
    })
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapporteur-3.3.0 config/routes.rb