summaryrefslogtreecommitdiff
path: root/app/controllers/import/available_namespaces_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/import/available_namespaces_controller.rb')
-rw-r--r--app/controllers/import/available_namespaces_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/import/available_namespaces_controller.rb b/app/controllers/import/available_namespaces_controller.rb
new file mode 100644
index 00000000000..7983b4f20b5
--- /dev/null
+++ b/app/controllers/import/available_namespaces_controller.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class Import::AvailableNamespacesController < ApplicationController
+ def index
+ render json: NamespaceSerializer.new.represent(current_user.manageable_groups_with_routes)
+ end
+end