config/routes.rb in federails-0.2.0 vs config/routes.rb in federails-0.3.0

- old
+ new

@@ -8,11 +8,15 @@ end end if Federails.configuration.client_routes_path scope Federails.configuration.client_routes_path, module: :client, as: :client do - resources :activities, only: [:index, :feed] + resources :activities, only: [:index] do + collection do + get :feed, to: 'activities#feed' + end + end resources :actors, only: [:index, :show] do collection do get :lookup, to: 'actors#lookup' end resources :activities, only: [:index] @@ -28,10 +32,10 @@ end end end end - scope Federails.configuration.server_routes_path, module: :server, as: :server do + scope Federails.configuration.server_routes_path, module: :server, as: :server, defaults: { format: :activitypub } do resources :actors, only: [:show] do member do get :followers get :following end