mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
19 lines
378 B
Ruby
19 lines
378 B
Ruby
require 'rails5_api_controller_backport'
|
|
|
|
module Api
|
|
module V1
|
|
module Registrant
|
|
class AuthController < ActionController::API
|
|
def eid
|
|
login_params = set_eid_params
|
|
|
|
render json: login_params
|
|
end
|
|
|
|
def set_eid_params
|
|
params.permit(:ident, :first_name, :last_name, :country)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|