Permalink
Browse files

Adds a placeholder route

  • Loading branch information...
1 parent 8dc2466 commit 2a69aee86149f7d71daf7377b815dc1bbc0aa31e @hassox hassox committed Jul 17, 2008
Showing with 4 additions and 1 deletion.
  1. +4 −1 merb-rest-server/lib/merb_rest_server.rb
@@ -53,7 +53,10 @@ def self.deactivate
# to avoid potential conflicts with global named routes.
def self.setup_router(scope)
# example of a named route
- scope.match('/index.:format').to(:controller => 'main', :action => 'index').name(:merb_rest_server_index)
+ scope.match(%r{(.*)}).defer_to do |req, params|
+
+ end
+ # scope.match('/index.:format').to(:controller => 'main', :action => 'index').name(:merb_rest_server_index)
end
end

0 comments on commit 2a69aee

Please sign in to comment.