Sha256: 0d35f0238a13b719e6d9b6d56d674d250d5c923fa9e6fd624f2f21dd5a36e395
Contents?: true
Size: 886 Bytes
Versions: 4
Compression:
Stored size: 886 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#index", :as => :repos #route is for the repo filter on the pull request and deploys page 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hubstats-0.3.8 | config/routes.rb |
hubstats-0.3.7 | config/routes.rb |
hubstats-0.3.6 | config/routes.rb |
hubstats-0.3.5 | config/routes.rb |