search_controller.rb 160 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
2
3
4
5
6
7
class SearchController < ApplicationController
  def index
    crn = params[:crn]
    @sections = Section.find_by_crn(crn)
    render json: @sections
  end
end