diff --git a/config/routes.rb b/config/routes.rb index 64369d3..1da5a0b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ DiasporaFederation::Engine.routes.draw do controller :receive do - post "receive/public" => :public, :as => "receive_public" - post "receive/users/:guid" => :private, :as => "receive_private" + post "receive-new/public" => :public, :as => "receive_public" + post "receive-new/users/:guid" => :private, :as => "receive_private" end controller :webfinger do diff --git a/spec/routing/receive_routing_spec.rb b/spec/routing/receive_routing_spec.rb index 87a53b9..4f72070 100644 --- a/spec/routing/receive_routing_spec.rb +++ b/spec/routing/receive_routing_spec.rb @@ -3,14 +3,14 @@ module DiasporaFederation routes { DiasporaFederation::Engine.routes } it "routes POST public" do - expect(post: "/receive/public").to route_to( + expect(post: "/receive-new/public").to route_to( controller: "diaspora_federation/receive", action: "public" ) end it "routes POST private" do - expect(post: "/receive/users/1234").to route_to( + expect(post: "/receive-new/users/1234").to route_to( controller: "diaspora_federation/receive", action: "private", guid: "1234"