Integrate auction

Closes #874
This commit is contained in:
Artur Beljajev 2018-11-29 15:08:22 +02:00
parent 640faaadb9
commit 42e8f86dae
51 changed files with 1619 additions and 53 deletions

View file

@ -147,11 +147,15 @@ user_session_timeout: '3600' # 1 hour
secure_session_cookies: 'false' # true|false
same_site_session_cookies: 'false' # false|strict|lax
release_domains_to_auction: 'true'
auction_api_allowed_ips: '' # 192.0.2.0, 192.0.2.1
# Since the keys for staging are absent from the repo, we need to supply them separate for testing.
test:
payments_seb_bank_certificate: 'test/fixtures/files/seb_bank_cert.pem'
payments_seb_seller_private: 'test/fixtures/files/seb_seller_key.pem'
release_domains_to_auction: 'false'
auction_api_allowed_ips: ''
# Airbrake // Errbit:
airbrake_host: "https://your-errbit-host.ee"

View file

@ -198,7 +198,10 @@ en:
blank: 'is missing'
epp_domain_registered: in use
epp_domain_blocked: Blocked
epp_domain_reserved: 'Domain name is reserved'
epp_domain_zone_with_same_origin: Zone with the same origin exists
epp_domain_at_auction: Domain is at auction
epp_domain_awaiting_payment: Awaiting payment
epp_obj_does_not_exist: 'Object does not exist'
epp_authorization_error: 'Authorization error'
epp_id_taken: 'Contact id already exists'

View file

@ -28,6 +28,8 @@ Rails.application.routes.draw do
end
resources :contacts, only: %i[index show update], param: :uuid
end
resources :auctions, only: %i[index show update], param: :uuid
end
match '*all', controller: 'cors', action: 'cors_preflight_check', via: [:options],