app/controllers/api/beta/course_id_information_controller.rb
# frozen_string_literal: true
class Api::Beta::CourseIdInformationController < Api::Beta::BaseController
before_action :doorkeeper_authorize!, scopes: [:public]
def index
course_ids = Course.order(:id).where(hidden: false).enabled.pluck(:id)
present(course_ids)
end
end