From 48b9619439818ecb344ae33c9c31a55ecb1aa27a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 5 Nov 2016 15:20:05 +0100 Subject: Adding hashtags --- config/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 4921d55f0..0a20d1655 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,8 @@ require 'sidekiq/web' Rails.application.routes.draw do + get 'tags/show' + mount ActionCable.server => '/cable' authenticate :user, lambda { |u| u.admin? } do @@ -40,6 +42,7 @@ Rails.application.routes.draw do end resources :media, only: [:show] + resources :tags, only: [:show] namespace :api do # PubSubHubbub @@ -56,6 +59,7 @@ Rails.application.routes.draw do get :home get :mentions get :public + get '/tag/:id', action: :tag end member do -- cgit