Project

General

Profile

Routes in plugin

Added by Mikhail Yourievich about 10 years ago

How can I add resourse projects in plugin routes?
Such "my_action" from routes in redmine

resources :projects do
    member do
      get 'settings(/:tab)', :action => 'settings', :as => 'settings'

      post 'my_action'

      post 'modules'
      post 'archive'
      post 'unarchive'
      post 'close'
      post 'reopen'
      match 'copy', :via => [:get, :post]
    end 
   ....

thnx