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

#indexObject



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

def index
  render status: 200
end

#not_foundObject



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