Class: Api::V1::WebsitesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/api/v1/websites_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
# File 'app/controllers/api/v1/websites_controller.rb', line 5

def index
  render json: {
             success: true,
             websites: Website.scope_by_dba_organization(current_user.party.dba_organization).all.collect { |w| w.to_data_hash }
         }
end