forked from tmerten/redmine_re
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.rb
66 lines (54 loc) · 4.02 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
RedmineApp::Application.routes.draw do
resources :ratings
match 'projects/:project_id/requirements' => 'requirements#index', :via => :get
match 'projects/:project_id/requirements/settings/firstload' => 're_settings#configure', :firstload => '1'
match 'projects/:project_id/requirements/settings' => 're_settings#configure'
match 'projects/:project_id/requirements/settings/:artifact_type/description/edit' => 're_settings#edit_artifact_type_description'
match 'projects/:project_id/requirements/settings/:artifact_type/fields/edit' => 're_settings#configure_fields'
match 'projects/:project_id/requirements/treefilter' => 'requirements#treefilter'
match 'projects/:project_id/requirements/relations/visualization/' => 're_artifact_relationship#visualization'
match 'projects/:project_id/requirements/relations/visualization/show/:visualization_type' => 're_artifact_relationship#build_json_according_to_user_choice'
match 'projects/:project_id/requirements/tree/treestate' => 'requirements#treestate'
match 'projects/:project_id/requirements/tree/treestate/:id' => 'requirements#treestate'
match 'projects/:project_id/requirements/tree/treestate/:current_actifact_id/:id' => 'requirements#treestate'
match 'projects/requirements/tree/drop' => 'requirements#delegate_tree_drop'
match 'projects/:project_id/use_case/autocomplete/sink' => 're_use_case#autocomplete_sink'
match 'projects/:project_id/issues/new/connected_to/:artifacttype/:associationid' => 'issues#new'
match 'projects/:project_id/requirements/filtered_json' => 're_artifact_relationship#build_json_according_to_user_choice'
match 'projects/:project_id/requirements/export/:node_id' => 'requirements#export'
# ReArtifactProperties as "artifact"
resources :re_artifact_properties, :except => [:new, :index]
match 're_artifact_properties/:id/recursive_destroy' => 're_artifact_properties#recursive_destroy'
match 're_artifact_properties/:id/how_to_delete' => 're_artifact_properties#how_to_delete'
match 'projects/:project_id/requirements/remove/:artifactid/from_issue/:issueid' => 're_artifact_properties#remove_artifact_from_issue'
match 'projects/:project_id/requirements/artifact/new/:artifact_type' => 're_artifact_properties#new'
match 'projects/:project_id/requirements/artifact/new/:artifact_type/inside_of/:parent_artifact_id', :to => 're_artifact_properties#new', :as => 're_artifact_properti'
match 'projects/:project_id/requirements/artifact/new/:artifact_type/below_of/:sibling_artifact_id' => 're_artifact_properties#new'
match 'projects/:project_id/requirements/autcomplete' => 're_artifact_properties#autocomplete_artifact'
match 'projects/:project_id/requirements/artifact/autocomplete/issue' => 're_artifact_properties#autocomplete_issue'
match 'projects/:project_id/requirements/artifact/autocomplete/artifact' => 're_artifact_properties#autocomplete_artifact'
match 'projects/:project_id/requirements/artifact/new_comment/:id' => 're_artifact_properties#new_comment'
match ':project_id/:id/:re_artifact_properties_id/delete' => 're_artifact_relationship#delete'
match 'projects/:project_id/ralation/prepare/:id' => 're_artifact_relationship_controller#prepare_relationships'
match 'projects/:project_id/ralation/autocomplete/sink/:id' => 're_artifact_relationship_controller#autocomplete_sink'
match '/relation/add' => 'requirements#add_relation'
match 'projects/:project_id/re_queries' => 're_queries#index', :via => :get
match 'projects/:project_id/re_queries/:id/delete' => 're_queries#delete', :via => :get
scope "(/projects/:project_id)" do
resources :re_queries do
collection do
post :apply
get :suggest_artifacts
get :suggest_issues
get :suggest_diagrams
get :suggest_users
get :artifacts_bits
get :issues_bits
get :diagrams_bits
get :users_bits
end
end
end
match "projects/:project_id/diagram_preview/:diagram_id" => 'requirements#sendDiagramPreviewImage'
match 're_artifact_properties/download/:id' => 're_artifact_properties#download'
end