Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added a new controller and index method
  • Loading branch information
gatorjuice committed Jul 22, 2018
commit 0ff666ee47a957193635a7ce707143b9bf63f2e8
9 changes: 8 additions & 1 deletion app/controllers/api/v1/partners_controller.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
class Api::V1::PartnersController < ApplicationController
module Api
module V1
class PartnersController < ApiController
def index
render json: Partner.all
end
end
end
end