mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Merge branch 'master' into refactor-devise-integration
This commit is contained in:
commit
dbace4cbc5
19 changed files with 682 additions and 42 deletions
|
@ -96,6 +96,8 @@ arireg_host: 'http://demo-ariregxml.rik.ee:81/'
|
|||
sk_digi_doc_service_endpoint: 'https://tsp.demo.sk.ee'
|
||||
sk_digi_doc_service_name: 'Testimine'
|
||||
|
||||
# Registrant API
|
||||
registrant_api_auth_allowed_ips: '127.0.0.1, 0.0.0.0' #ips, separated with commas
|
||||
|
||||
#
|
||||
# MISC
|
||||
|
|
|
@ -36,7 +36,7 @@ module DomainNameRegistry
|
|||
config.i18n.default_locale = :en
|
||||
|
||||
config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
|
||||
config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
|
||||
# config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
|
||||
|
||||
# Autoload all model subdirs
|
||||
config.autoload_paths += Dir[Rails.root.join('app', 'models', '**/')]
|
||||
|
|
|
@ -18,6 +18,16 @@ Rails.application.routes.draw do
|
|||
|
||||
mount Repp::API => '/'
|
||||
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
namespace :registrant do
|
||||
post 'auth/eid', to: 'auth#eid'
|
||||
|
||||
resources :domains, only: [:index, :show], param: :uuid
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# REGISTRAR ROUTES
|
||||
namespace :registrar do
|
||||
root 'dashboard#show'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue