Class: Api::V1::BaseController

Inherits:
ApiController
  • Object
show all
Defined in:
app/controllers/api/v1/base_controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) index



3
4
5
# File 'app/controllers/api/v1/base_controller.rb', line 3

def index
  render status: 200
end

- (Object) not_found



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