Class: Cats::Core::SpacesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/cats/core/spaces_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate, #current_user, #skip_bullet

Instance Method Details

#available_spaceObject



4
5
6
7
8
# File 'app/controllers/cats/core/spaces_controller.rb', line 4

def available_space
  service = SpaceService.new
  space = service.available_space(params[:id], params[:level])
  render json: {success: true, data: space}
end