created file sync
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
Rails.application.routes.draw do
|
||||
|
||||
get '/file/:id', to: 'configuration_files#content', as: 'pull_file'
|
||||
post '/file/:id', to: 'configuration_files#update_by_api', as: 'push_file'
|
||||
|
||||
resources :configuration_templates do as_routes end
|
||||
resources :file_versions do as_routes end
|
||||
resources :file_types do as_routes end
|
||||
@@ -7,6 +11,9 @@ Rails.application.routes.draw do
|
||||
collection do
|
||||
post 'create_from_template'
|
||||
end
|
||||
member do
|
||||
put 'update_by_form'
|
||||
end
|
||||
end
|
||||
resources :operating_systems do as_routes end
|
||||
resources :servers do as_routes end
|
||||
|
||||
Reference in New Issue
Block a user