Class: Stay::RoomsController

Inherits:
BaseApiController show all
Defined in:
app/controllers/stay/rooms_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
# File 'app/controllers/stay/rooms_controller.rb', line 5

def index
    @rooms = @property.rooms
    render json: { rooms: @rooms }
end

#showObject



10
11
12
# File 'app/controllers/stay/rooms_controller.rb', line 10

def show
    render json: { room: @room }
end