myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2915] trunk/config/routes.rb: changed linked dat


From: noreply
Subject: [myexperiment-hackers] [2915] trunk/config/routes.rb: changed linked data routes to match only GET requests
Date: Fri, 20 Jan 2012 10:59:25 -0500 (EST)

Revision
2915
Author
dgc
Date
2012-01-20 10:59:25 -0500 (Fri, 20 Jan 2012)

Log Message

changed linked data routes to match only GET requests

Modified Paths

Diff

Modified: trunk/config/routes.rb (2914 => 2915)


--- trunk/config/routes.rb	2012-01-20 15:55:11 UTC (rev 2914)
+++ trunk/config/routes.rb	2012-01-20 15:59:25 UTC (rev 2915)
@@ -9,36 +9,36 @@
   if Conf.rdfgen_enable
 
     map.connect '/:contributable_type/:contributable_id/attributions/:attribution_id.:format',
-      :controller => 'linked_data', :action ="" 'attributions'
+      :controller => 'linked_data', :action ="" 'attributions', :conditions => { :method => :get }
 
     map.connect '/:contributable_type/:contributable_id/citations/:citation_id.:format',
-      :controller => 'linked_data', :action ="" 'citations'
+      :controller => 'linked_data', :action ="" 'citations', :conditions => { :method => :get }
 
     map.connect '/:contributable_type/:contributable_id/comments/:comment_id.:format',
-      :controller => 'linked_data', :action ="" 'comments'
+      :controller => 'linked_data', :action ="" 'comments', :conditions => { :method => :get }
 
     map.connect '/:contributable_type/:contributable_id/credits/:credit_id.:format',
-      :controller => 'linked_data', :action ="" 'credits'
+      :controller => 'linked_data', :action ="" 'credits', :conditions => { :method => :get }
 
     map.connect '/users/:user_id/favourites/:favourite_id.:format',
-      :controller => 'linked_data', :action ="" 'favourites'
+      :controller => 'linked_data', :action ="" 'favourites', :conditions => { :method => :get }
 
     map.connect '/packs/:contributable_id/local_pack_entries/:local_pack_entry_id.:format',
       :controller => 'linked_data', :action ="" 'local_pack_entries',
-      :contributable_type => 'packs'
+      :contributable_type => 'packs', :conditions => { :method => :get }
 
     map.connect '/packs/:contributable_id/remote_pack_entries/:remote_pack_entry_id.:format',
       :controller => 'linked_data', :action ="" 'remote_pack_entries',
-      :contributable_type => 'packs'
+      :contributable_type => 'packs', :conditions => { :method => :get }
 
     map.connect '/:contributable_type/:contributable_id/policies/:policy_id.:format',
-      :controller => 'linked_data', :action ="" 'policies'
+      :controller => 'linked_data', :action ="" 'policies', :conditions => { :method => :get }
 
     map.connect '/:contributable_type/:contributable_id/ratings/:rating_id.:format',
-      :controller => 'linked_data', :action ="" 'ratings'
+      :controller => 'linked_data', :action ="" 'ratings', :conditions => { :method => :get }
 
     map.connect '/tags/:tag_id/taggings/:tagging_id.:format',
-      :controller => 'linked_data', :action ="" 'taggings'
+      :controller => 'linked_data', :action ="" 'taggings', :conditions => { :method => :get }
   end
 
   map.content '/content', :controller => 'content', :action ="" 'index', :conditions => { :method => :get }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]