Skip to content

Commit d5d1b0c

Browse files
committed
Change controller name for consistency with model.
1 parent d125ae8 commit d5d1b0c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/api/orgs_by_domain_controller.rb renamed to app/controllers/api/org_domain_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Api
44
# Controller for API routes that return orgs by domain.
5-
class OrgsByDomainController < ApplicationController
5+
class OrgDomainController < ApplicationController
66
# GET /api/get-orgs-by-domain?domain=berkeley.edu
77
def index
88
email_param = search_params[:email]

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
resources :templates, only: [:index]
205205
end
206206

207-
get 'get-orgs-by-domain', to: 'orgs_by_domain#index'
207+
get 'get-orgs-by-domain', to: 'org_domain#index'
208208
end
209209

210210
namespace :paginable do

0 commit comments

Comments
 (0)