Remove unused routes

This commit is contained in:
Artur Beljajev 2019-10-01 12:43:10 +03:00
parent 958e370650
commit 9e5fdbcf11
5 changed files with 1 additions and 12 deletions

View file

@ -3,17 +3,13 @@ require_dependency 'epp_constraint'
Rails.application.routes.draw do
namespace(:epp, defaults: { format: :xml }) do
match 'session/:action', controller: 'sessions', via: :all, constraints: EppConstraint.new(:session)
match 'session/pki/:action', controller: 'sessions', via: :all, constraints: EppConstraint.new(:session)
post 'command/:action', controller: 'domains', constraints: EppConstraint.new(:domain)
post 'command/:action', controller: 'contacts', constraints: EppConstraint.new(:contact)
post 'command/poll', to: 'polls#poll', constraints: EppConstraint.new(:poll)
post 'command/keyrelay', to: 'keyrelays#keyrelay', constraints: EppConstraint.new(:keyrelay)
post 'command/:command', to: 'errors#not_found', constraints: EppConstraint.new(:not_found) # fallback route
get 'error/:command', to: 'errors#error'
match "*command", to: 'errors#error', via: [:post, :get, :patch, :put, :delete]
end
mount Repp::API => '/'