Sha256: bd73fafabc1967fa9e0d77aeabc18f8576ab99150a2f112e775def94fa3fca85

Contents?: true

Size: 905 Bytes

Versions: 39

Compression:

Stored size: 905 Bytes

Contents

# Draw all of the routes that will be used in Hubstats
Hubstats::Engine.routes.draw do
  post "/handler" => "events#handler", :as => :handler
  root to: "pull_requests#index" # sets default root to be the pulls page
  get "/pulls" => "pull_requests#index", :as => :pulls # routes to list of pulls
  resources :deploys, :only => [:create, :index, :show] # routes to index, show, and to create method
  resources :teams, :only => [:index, :show]
  get "/users" => "users#index", :as => :users # routes to list of users
  get "/user/:id" => "users#show", :as => :user # routes to specific user's contributions
  get "/repos" => "repos#index", :as => :repos # routes to the list of repos
  get "/:repo" => "repos#show", :as => :repo # routes to specific repo's stats
  scope "/:repo", :as => :repo do
    get '/pull/:id' => "pull_requests#show", :as => :pull # routes to the specific repo's pull id
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
hubstats-1.2.1 config/routes.rb
hubstats-1.2.0 config/routes.rb
hubstats-1.1.0 config/routes.rb
hubstats-1.0.0 config/routes.rb
hubstats-1.0.0.beta3 config/routes.rb
hubstats-1.0.0.beta2 config/routes.rb
hubstats-1.0.0.beta1 config/routes.rb
hubstats-1.0.0.beta config/routes.rb
hubstats-0.12.2 config/routes.rb
hubstats-0.12.1 config/routes.rb
hubstats-0.12.0 config/routes.rb
hubstats-0.11.5 config/routes.rb
hubstats-0.11.4 config/routes.rb
hubstats-0.11.1 config/routes.rb
hubstats-0.11.0 config/routes.rb
hubstats-0.10.0 config/routes.rb
hubstats-0.9.5 config/routes.rb
hubstats-0.9.4 config/routes.rb
hubstats-0.9.3 config/routes.rb
hubstats-0.9.2 config/routes.rb