We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bea1727 commit 7989478Copy full SHA for 7989478
config/routes.rb
@@ -1,22 +1,21 @@
1
RedmineApp::Application.routes.draw do
2
-
3
- resources :projects do
4
5
- match '/knowledgebase', :to => 'knowledgebase#index', :via => :get
6
+ scope "/projects/:project_id/knowledgebase" do
+ get '/' => 'knowledgebase#index'
7
resources :categories, :via => [:get, :post]
8
resources :articles do
9
- collection do
10
- get "tagged"
11
- post "preview"
12
- end
13
- get "comment"
14
- member do
15
- put "preview"
16
- post "add_comment"
17
- post "destroy_comment"
18
- post "rate"
19
20
+ collection do
+ get "tagged"
+ post "preview"
+ end
+
+ get "comment"
+ member do
+ put "preview"
+ post "add_comment"
+ post "destroy_comment"
+ post "rate"
21
end
22
0 commit comments