gitlab-org--gitlab-foss/app/controllers/import/url_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
459 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Import::UrlController < ApplicationController
feature_category :importers
urgency :low
def validate
result = Import::ValidateRemoteGitEndpointService.new(validate_params).execute
if result.success?
render json: { success: true }
else
render json: { success: false, message: result.message }
end
end
private
def validate_params
params.permit(:user, :password, :url)
end
end