Reuse existing controller and route

This commit is contained in:
Evan Minto 2017-02-06 01:19:05 -08:00
parent 8bd8ea7c04
commit 94e213c6c1
9 changed files with 14 additions and 28 deletions

View file

@ -1,4 +1,5 @@
# Be sure to restart your server when you modify this file.
Mime::Type.register "application/json", :json, %w( text/x-json application/jsonrequest application/jrd+json )
Mime::Type.register "text/xml", :xml, %w( application/xml application/atom+xml application/xrd+xml )
Mime::Type.register "application/json", :json, %w( text/x-json application/jsonrequest application/jrd+json )
Mime::Type.register "text/xml", :xml, %w( application/xml application/atom+xml application/xrd+xml )
Mime::Type.register "application/activity+json", :activitystreams2

View file

@ -153,10 +153,6 @@ Rails.application.routes.draw do
end
end
namespace :activitypub do
resources :accounts, only: [:show]
end
namespace :web do
resource :settings, only: [:update]
end