added route for notifications
This commit is contained in:
parent
dec91d474d
commit
c9d57e235f
|
@ -2,5 +2,6 @@ class NotificationsController < ApplicationController
|
|||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@type = params[:type]
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1 +1 @@
|
|||
= nav_entry "Notifications", "/notifications/index", badge: notification_count
|
||||
= nav_entry "Notifications", notifications_path, badge: notification_count
|
|
@ -7,8 +7,6 @@ Rails.application.routes.draw do
|
|||
mount Sidekiq::Web, at: "/sidekiq"
|
||||
end
|
||||
|
||||
get 'notifications/index'
|
||||
|
||||
root 'static#index'
|
||||
|
||||
match '/about', to: 'static#about', via: 'get'
|
||||
|
@ -58,6 +56,8 @@ Rails.application.routes.draw do
|
|||
|
||||
match '/public', to: 'public#index', via: :get, as: :public_timeline
|
||||
|
||||
match '/notifications(/:type)', to: 'notifications#index', via: :get, as: :notifications, defaults: {type: 'all'}
|
||||
|
||||
match '/inbox', to: 'inbox#show', via: 'get'
|
||||
|
||||
match '/user/:username(/p/:page)', to: 'user#show', via: 'get', defaults: {page: 1}
|
||||
|
|
Loading…
Reference in New Issue