config/routes.rb in bjond-api-0.3.6 vs config/routes.rb in bjond-api-0.3.9
- old
+ new
@@ -1,10 +1,15 @@
Rails.application.routes.draw do
resources :bjond_registrations
- get '/bjond-app/services/' => 'bjondservices#index'
- get '/bjond-app/services/schema' => 'bjondservices#get_schema'
- get '/bjond-app/services/register' => 'bjondservices#register'
- post '/bjond-app/services/:groupid/register' => 'bjondservices#register_group_endpoint'
- get '/bjond-app/services/:groupid/read' => 'bjondservices#get_group_configuration'
- post '/bjond-app/services/:groupid/configure' => 'bjondservices#configure_group_endpoint'
+
+ scope '/bjond-app' do
+ get '/services/' => 'bjondservices#index'
+ get '/services/edit/:id' => 'bjondservices#edit'
+ patch '/services/:id' => 'bjondservices#update'
+ get '/services/schema' => 'bjondservices#get_schema'
+ get '/services/register' => 'bjondservices#register'
+ post '/services/:groupid/register' => 'bjondservices#register_group_endpoint'
+ get '/services/:groupid/read' => 'bjondservices#get_group_configuration'
+ post '/services/:groupid/configure' => 'bjondservices#configure_group_endpoint'
+ end
end