routes.rb revision 5f75d904465f5f8e5f29c7d852ec2f16af57b03e
60e51fd2764291df2332f36ff478777627d92b57Sumit Boserequire Rails.root.join('lib', 'router_constraints.rb')
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose # IRI Routing #
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose ###############
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose MIMERouterConstraint.new('text/plain', 'text/html'))
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose get 'ref/:version_number/:repository_id(/*path)/:file',
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose MIMERouterConstraint.new('text/plain', 'text/html'))
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose ###############
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose get '/after_signup', to: 'home#show' , as: 'after_sign_up'
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose resources :supports, :only => [:create, :update, :destroy, :index]
60e51fd2764291df2332f36ff478777627d92b57Sumit Bose resources :supports, :only => [:create, :update, :destroy, :index]
resources :categories, only: [:index]
resources :repositories, only: [:index, :update]
resources :ontologies, only: [:index, :update]
resources :ontologies, only: [:index] do
collection do
resources :repository_settings, :only => :index
collection do
member do
resource :oops_request, :only => [:show, :create]
controller: :files,
controller: :history,
as: :history,
controller: :diffs,
controller: :files,
controller: :files,
controller: :files,