mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Add new resource for certs
This commit is contained in:
parent
143fb7eb1b
commit
5319db16b4
12 changed files with 310 additions and 33 deletions
|
@ -481,4 +481,11 @@ en:
|
|||
address_help: 'Street name, house no - apartment no, city, county, country, zip'
|
||||
download: 'Download'
|
||||
failed_to_create_certificate: 'Failed to create certificate!'
|
||||
failed_to_revoke_certificate: 'Failed to revoke certificate!'
|
||||
contact_code: Contact code
|
||||
upload_csr: 'Upload CSR'
|
||||
signature_algorithm: 'Signature algorithm'
|
||||
version: 'Version'
|
||||
sign_this_request: 'Sign this request'
|
||||
revoke_this_certificate: 'Revoke this certificate'
|
||||
crt_revoked: 'CRT (revoked)'
|
||||
|
|
|
@ -48,9 +48,13 @@ Rails.application.routes.draw do
|
|||
|
||||
resources :admin_users
|
||||
resources :api_users do
|
||||
member do
|
||||
get 'download_csr'
|
||||
get 'download_crt'
|
||||
resources :certificates do
|
||||
member do
|
||||
post 'sign'
|
||||
post 'revoke'
|
||||
get 'download_csr'
|
||||
get 'download_crt'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue