add routes and empty index for discover

This commit is contained in:
pixeldesu 2015-05-13 20:56:51 +02:00
parent c9a268ebdf
commit 961ebfd266
3 changed files with 7 additions and 0 deletions

View File

@ -1,2 +1,7 @@
class DiscoverController < ApplicationController
before_filter :authenticate_user!
def index
end
end

View File

@ -0,0 +1 @@

View File

@ -90,6 +90,7 @@ Rails.application.routes.draw do
match '/unsubscribe', to: 'subscription#unsubscribe', via: :post, as: :unsubscribe_answer
end
match '/discover', to: 'discover#index', via: :get, as: :discover
match '/public', to: 'public#index', via: :get, as: :public_timeline
match '/group/:group_name', to: 'group#index', via: :get, as: :group_timeline