debian-mirror-gitlab/app/controllers/import/available_namespaces_controller.rb
2020-10-24 23:57:45 +05:30

7 lines
216 B
Ruby

# frozen_string_literal: true
class Import::AvailableNamespacesController < ApplicationController
def index
render json: NamespaceSerializer.new.represent(current_user.manageable_groups_with_routes)
end
end