Expose tables via API #80

Merged
bustikiller merged 3 commits from arrangements-api into main 2024-11-02 12:19:17 +00:00
Showing only changes of commit d6182392f6 - Show all commits

View File

@ -2,7 +2,7 @@
class TablesArrangementsController < ApplicationController class TablesArrangementsController < ApplicationController
def index def index
render json: TablesArrangement.all.order(discomfort: :asc).limit(10).as_json(only: %i[id discomfort]) render json: TablesArrangement.all.order(discomfort: :asc).limit(3).as_json(only: %i[id discomfort])
end end
def show def show