moved api server code into new directory structure
[arvados.git] / services / api / app / controllers / orvos / v1 / links_controller.rb
diff --git a/services/api/app/controllers/orvos/v1/links_controller.rb b/services/api/app/controllers/orvos/v1/links_controller.rb
new file mode 100644 (file)
index 0000000..046f683
--- /dev/null
@@ -0,0 +1,10 @@
+class Orvos::V1::LinksController < ApplicationController
+  def index
+    if params[:tail_uuid]
+      params[:where] = Oj.load(params[:where]) if params[:where].is_a?(String)
+      params[:where] ||= {}
+      params[:where][:tail_uuid] = params[:tail_uuid]
+    end
+    super
+  end
+end