moved api server code into new directory structure
[arvados.git] / app / controllers / orvos / v1 / collections_controller.rb
diff --git a/app/controllers/orvos/v1/collections_controller.rb b/app/controllers/orvos/v1/collections_controller.rb
deleted file mode 100644 (file)
index a1afd1e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-class Orvos::V1::CollectionsController < ApplicationController
-  def create
-    # It's not an error for a client to re-register a manifest that we
-    # already know about.
-    @object = model_class.new resource_attrs
-    begin
-      @object.save!
-    rescue ActiveRecord::RecordNotUnique
-      logger.debug resource_attrs.inspect
-      if resource_attrs['manifest_text'] and resource_attrs['uuid']
-        @existing_object = model_class.
-          where('uuid=? and manifest_text=?',
-                resource_attrs['uuid'],
-                resource_attrs['manifest_text']).
-          first
-        @object = @existing_object || @object
-      end
-    end
-    show
-  end
-end