mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Remove unused routes
This commit is contained in:
parent
958e370650
commit
9e5fdbcf11
5 changed files with 1 additions and 12 deletions
|
@ -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 => '/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue