about summary refs log tree commit diff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-02-16 07:22:20 +0100
committerGitHub <noreply@github.com>2018-02-16 07:22:20 +0100
commit9dbae6e8a120fc18fdc007503375b53f6b061b8f (patch)
treecf0a3ceee2a1a0c4c1f1418ac9668992465bdfeb /config/routes.rb
parent1122579216a0ba6d081ff9ad14a1b501636f9601 (diff)
Save video metadata and improve video OpenGraph tags (#6481)
* Save metadata from video attachments, put correct dimensions into OG tags

* Add twitter:player for videos

* Fix code style and test
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 34f33fa95..9f541200a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -103,7 +103,10 @@ Rails.application.routes.draw do
     resources :sessions, only: [:destroy]
   end
 
-  resources :media,  only: [:show]
+  resources :media, only: [:show] do
+    get :player
+  end
+
   resources :tags,   only: [:show]
   resources :emojis, only: [:show]
   resources :invites, only: [:index, :create, :destroy]