remove PublicsController completely
This commit is contained in:
parent
05e4c8dc51
commit
082e300a40
3 changed files with 1 additions and 43 deletions
|
|
@ -1,20 +0,0 @@
|
|||
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
||||
# licensed under the Affero General Public License version 3 or later. See
|
||||
# the COPYRIGHT file.
|
||||
|
||||
class PublicsController < ApplicationController
|
||||
include Diaspora::Parser
|
||||
|
||||
skip_before_action :set_header_data
|
||||
skip_before_action :set_grammatical_gender
|
||||
before_action :authenticate_user!, :only => [:index]
|
||||
|
||||
respond_to :html
|
||||
respond_to :xml, :only => :post
|
||||
|
||||
layout false
|
||||
|
||||
def hub
|
||||
render :text => params['hub.challenge'], :status => 202, :layout => false
|
||||
end
|
||||
end
|
||||
|
|
@ -18,6 +18,7 @@ Diaspora::Application.routes.draw do
|
|||
mount Sidekiq::Web => '/sidekiq', :as => 'sidekiq'
|
||||
end
|
||||
|
||||
# Federation
|
||||
mount DiasporaFederation::Engine => "/"
|
||||
|
||||
get "/atom.xml" => redirect('http://blog.diasporafoundation.org/feed/atom') #too many stupid redirects :()
|
||||
|
|
@ -182,15 +183,6 @@ Diaspora::Application.routes.draw do
|
|||
get '/u/:username' => 'people#show', :as => 'user_profile', :constraints => { :username => /[^\/]+/ }
|
||||
get '/u/:username/profile_photo' => 'users#user_photo', :constraints => { :username => /[^\/]+/ }
|
||||
|
||||
|
||||
# Federation
|
||||
|
||||
controller :publics do
|
||||
get "hub" => :hub
|
||||
end
|
||||
|
||||
|
||||
|
||||
# External
|
||||
|
||||
resources :services, :only => [:index, :destroy]
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
||||
# licensed under the Affero General Public License version 3 or later. See
|
||||
# the COPYRIGHT file.
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
describe PublicsController, :type => :controller do
|
||||
describe '#hub' do
|
||||
it 'succeeds' do
|
||||
get :hub
|
||||
expect(response).to be_success
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue