mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-07 17:13:36 +01:00
add routes and empty index for discover
This commit is contained in:
parent
c9a268ebdf
commit
961ebfd266
3 changed files with 7 additions and 0 deletions
|
@ -1,2 +1,7 @@
|
||||||
class DiscoverController < ApplicationController
|
class DiscoverController < ApplicationController
|
||||||
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
|
def index
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
1
app/views/discover/index.html.haml
Normal file
1
app/views/discover/index.html.haml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -90,6 +90,7 @@ Rails.application.routes.draw do
|
||||||
match '/unsubscribe', to: 'subscription#unsubscribe', via: :post, as: :unsubscribe_answer
|
match '/unsubscribe', to: 'subscription#unsubscribe', via: :post, as: :unsubscribe_answer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
match '/discover', to: 'discover#index', via: :get, as: :discover
|
||||||
match '/public', to: 'public#index', via: :get, as: :public_timeline
|
match '/public', to: 'public#index', via: :get, as: :public_timeline
|
||||||
match '/group/:group_name', to: 'group#index', via: :get, as: :group_timeline
|
match '/group/:group_name', to: 'group#index', via: :get, as: :group_timeline
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue