deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: CIMI: Moved "/cimi" to "/cimi/cloudEntryPoint" redirect to CEP collection
Date Mon, 03 Dec 2012 15:54:14 GMT
Updated Branches:
  refs/heads/master b4c8a0747 -> 317dca79e


CIMI: Moved "/cimi" to "/cimi/cloudEntryPoint" redirect to CEP collection


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/317dca79
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/317dca79
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/317dca79

Branch: refs/heads/master
Commit: 317dca79eeb9b47f76d75ccdc4042b2467728326
Parents: b4c8a07
Author: Michal Fojtik <mi@mifo.sk>
Authored: Mon Dec 3 13:14:16 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Dec 3 16:49:38 2012 +0100

----------------------------------------------------------------------
 server/lib/cimi/collections/cloud_entry_point.rb |    4 ++++
 server/lib/cimi/server.rb                        |    4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/317dca79/server/lib/cimi/collections/cloud_entry_point.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/collections/cloud_entry_point.rb b/server/lib/cimi/collections/cloud_entry_point.rb
index 6371a06..b1240bc 100644
--- a/server/lib/cimi/collections/cloud_entry_point.rb
+++ b/server/lib/cimi/collections/cloud_entry_point.rb
@@ -16,6 +16,10 @@
 module CIMI::Collections
   class CloudEntryPoint < Base
 
+    get '/' do
+      redirect url('/cloudEntryPoint'), 301
+    end
+
     collection :cloudEntryPoint do
       description 'Cloud entry point'
       operation :index do

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/317dca79/server/lib/cimi/server.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/server.rb b/server/lib/cimi/server.rb
index 9462f6f..b1fc751 100644
--- a/server/lib/cimi/server.rb
+++ b/server/lib/cimi/server.rb
@@ -48,9 +48,5 @@ module CIMI
 
     helpers Sinatra::Rabbit::URLFor(CIMI.collections)
 
-    get '/' do
-      redirect url('/cloudEntryPoint'), 301
-    end
-
   end
 end


Mime
View raw message