created file sync

This commit is contained in:
Senad Uka
2016-02-21 19:17:04 +01:00
parent 709ce3e38c
commit ac099e3210
18 changed files with 230 additions and 28 deletions

View File

@@ -10,4 +10,4 @@ Rails.application.config.assets.version = '1.0'
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )
Rails.application.config.assets.precompile += %w( active_scaffold/indicator.gif )
Rails.application.config.assets.precompile += %w( template_select_form.js )
Rails.application.config.assets.precompile += %w( template_select_form.js edit_configuration_file_form.js )

View File

@@ -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