1
0

WIP: targets forms

This commit is contained in:
cryptogopher
2021-02-21 11:33:30 +01:00
parent 9e3dc24a14
commit ea308a1e4a
7 changed files with 34 additions and 31 deletions

View File

@@ -12,11 +12,10 @@ resources :projects, shallow: true do
post 'toggle_exposure', controller: :targets
end
end
resources :targets, except: [:show, :edit, :update] do
resources :targets, except: [:show, :edit] do
collection do
get 'edit/:date', action: :edit, as: :edit
get 'subthresholds/(:parent_id)', action: :subthresholds, as: :subthresholds
patch :update
post 'reapply/:date', action: :reapply, as: :reapply
end
end