Sha256: 114c272afe4b7c4ddd54b3680f7f647d13ffaf02807c9266d7462e14cbba616c
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
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 "/metrics" => "repos#dashboard", :as => :metrics # routes to list of repos and stats 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 # routes to the specific repo's pull id end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
hubstats-0.5.4 | config/routes.rb |
hubstats-0.5.3 | config/routes.rb |
hubstats-0.5.2 | config/routes.rb |
hubstats-0.5.1 | config/routes.rb |
hubstats-0.5.0 | config/routes.rb |