Revision 9fff3c7b
Added by Ondřej Pražák about 7 years ago
config/routes.rb | ||
---|---|---|
5 | 5 |
end |
6 | 6 |
|
7 | 7 |
ForemanPipeline::Engine.routes.draw do |
8 |
|
|
8 |
|
|
9 | 9 |
|
10 | 10 |
scope :foreman_pipeline, :path => '/foreman_pipeline' do |
11 |
|
|
11 |
|
|
12 | 12 |
namespace :api do |
13 |
|
|
14 |
api_resources :organizations, :only => [] do
|
|
13 |
|
|
14 |
api_resources :organizations, :only => [] do |
|
15 | 15 |
api_resources :jobs do |
16 | 16 |
member do |
17 | 17 |
put :set_content_view |
... | ... | |
23 | 23 |
get :run_job |
24 | 24 |
put :add_projects |
25 | 25 |
put :remove_projects |
26 |
put :set_to_environments
|
|
26 |
put :set_to_environments |
|
27 | 27 |
get :available_paths |
28 | 28 |
end |
29 | 29 |
end |
... | ... | |
46 | 46 |
api_resources :jenkins_project_params, :only => [:update] |
47 | 47 |
|
48 | 48 |
api_resources :jenkins_users, :only => [:index, :create, :destroy, :show, :update] |
49 |
|
|
49 |
|
|
50 | 50 |
end |
51 | 51 |
end |
52 |
end
|
|
52 |
end |
|
53 | 53 |
end |
lib/foreman_pipeline/engine.rb | ||
---|---|---|
31 | 31 |
} |
32 | 32 |
end |
33 | 33 |
|
34 |
initializer "foreman_pipeline.apipie" do |
|
35 |
Apipie.configuration.checksum_path += ['/foreman_pipeline/api/'] |
|
36 |
end |
|
37 |
|
|
34 | 38 |
initializer 'foreman_pipeline.register_actions', :before => 'foreman_tasks.initialize_dynflow' do |app| |
35 | 39 |
ForemanTasks.dynflow.require! |
36 | 40 |
|
Also available in: Unified diff
Fixes #12565 - Apipie added into engine