Skip to content

Commit

Permalink
update course controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellyboi committed Aug 28, 2023
1 parent 248b799 commit 0bb229f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/courses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Api::V1::CoursesController < ApplicationController

# GET /api/v1/courses
def index
courses = Course.all
courses = Course.all.order(name: :asc)
render json: courses, each_serializer: CourseSerializer, status: :ok
end

Expand Down

0 comments on commit 0bb229f

Please sign in to comment.