<NME> routes.rb
<BEF> Clahub::Application.routes.draw do
  root to: "pages#home", :as => :home
  match "/pages/*id" => 'pages#show', as: :page, format: false


  resources :repos, only: [:index]
  resources :licenses, only: [:new, :create]
end
  resources :agreements, only: [:index, :new, :create]

  constraints :repo_name => /[^\/]+/ do
    get 'agreements/:user_name/:repo_name.csv' => 'agreements#show', :as => :agreement, :format => :csv
    get 'agreements/:user_name/:repo_name' => 'agreements#show', :as => :agreement
    delete 'agreements/:user_name/:repo_name' => 'agreements#destroy', :as => :agreement
    put 'agreements/:user_name/:repo_name' => 'agreements#update', :as => :agreement
    post 'agreements/:user_name/:repo_name/signatures' => 'signatures#create', :as => :agreement_signature
  end

  post 'repo_hook' => 'github_webhooks#repo_hook'

  resource :markdown_preview
end

<MSG> User can create a license

<DFF> @@ -5,4 +5,6 @@ Clahub::Application.routes.draw do
 
   resources :repos, only: [:index]
   resources :licenses, only: [:new, :create]
+
+  get 'licenses/:user_name/:repo_name' => 'licenses#show', :as => :license
 end

User can create a license