debian-mirror-gitlab/app/controllers/import/available_namespaces_controller.rb

10 lines
247 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
class Import::AvailableNamespacesController < ApplicationController
2021-01-03 14:25:43 +05:30
feature_category :importers
2020-10-24 23:57:45 +05:30
def index
render json: NamespaceSerializer.new.represent(current_user.manageable_groups_with_routes)
end
end