mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
Create a Registrant auth controller
This commit is contained in:
parent
9de6c62560
commit
d67e777ea8
4 changed files with 53 additions and 1 deletions
19
app/controllers/api/v1/registrant/auth_controller.rb
Normal file
19
app/controllers/api/v1/registrant/auth_controller.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue