Sha256: 8e16fe7b94837186b521c89d3aaa0376679b2128d35137af012a283572e86b85

Contents?: true

Size: 858 Bytes

Versions: 3

Compression:

Stored size: 858 Bytes

Contents

Hubstats::Engine.routes.draw do
  root to: "pull_requests#index" #sets default root to be the pulls page
  post "/handler" => "events#handler", :as => :handler
  resources :deploys, :only => [:create, :index, :show] #routes to index, show, and to create method
  get "/metrics" => "repos#dashboard", :as => :metrics #routes to list of repos and stats
  get "/pulls" => "pull_requests#index", :as => :pulls #routes to list of pulls
  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#dashboard", :as => :repos #routes to list of repos and stats
  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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hubstats-0.3.4 config/routes.rb
hubstats-0.3.3 config/routes.rb
hubstats-0.3.2 config/routes.rb