Add :show action to admin api_user routes

In application_helper.rb we are generating link to  creator/updater, but if contact creator is API user, there is an error as we are trying to create link_to(api_user) without having a :show route. This commit fixes this.

Closes #1458
This commit is contained in:
Alex Sherman 2020-01-02 19:02:20 +05:00
parent a68c27af32
commit a46dd0eba5

View file

@ -271,7 +271,7 @@ Rails.application.routes.draw do
resources :admin_users
# /admin/api_users is mainly for manual testing
resources :api_users, only: :index do
resources :api_users, only: [:index, :show] do
resources :certificates do
member do
post 'sign'