Class: Api::V1::BaseController
- Inherits:
-
ApiController
- Object
- ApiController
- Api::V1::BaseController
- Defined in:
- app/controllers/api/v1/base_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 |
# File 'app/controllers/api/v1/base_controller.rb', line 3 def index render status: 200 end |
#not_found ⇒ Object
7 8 9 |
# File 'app/controllers/api/v1/base_controller.rb', line 7 def not_found render json: '{"success": false, "message": "Invalid route"}', status: :not_found end |