Refactor admin settings routes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This is much cleaner, and semantically more correct.
This commit is contained in:
2024-01-15 19:41:30 +03:00
parent 4fa4ae6b54
commit 51f4556ede
9 changed files with 56 additions and 45 deletions

View File

@@ -93,8 +93,8 @@ Rails.application.routes.draw do
end
namespace :settings do
resources 'registrations', only: ['index', 'create']
resources 'services', only: ['index', 'create']
resource 'registrations', only: ['show', 'update']
resources 'services', param: 'service', only: ['index', 'show', 'update']
end
end