Class: SimpleJwtAuth::UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SimpleJwtAuth::UsersController
- Defined in:
- app/controllers/simple_jwt_auth/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/simple_jwt_auth/users_controller.rb', line 6 def create user = User.new(user_params) if user.save render json: {message: "User created successfully"}, status: :created else render json: {errors: user.errors.}, status: :bad_request end end |