mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Use spree_api_controller_setup layer
This commit is contained in:
@@ -4,13 +4,8 @@
|
||||
module DfcProvider
|
||||
module Api
|
||||
class ProductsController < ::ActionController::Metal
|
||||
include ActionController::Head
|
||||
include AbstractController::Rendering
|
||||
include ActionController::Rendering
|
||||
include ActionController::Renderers::All
|
||||
include ActionController::MimeResponds
|
||||
include ActionController::ImplicitRender
|
||||
include AbstractController::Callbacks
|
||||
include Spree::Api::ControllerSetup
|
||||
|
||||
# To access 'base_url' helper
|
||||
include ActionController::UrlFor
|
||||
include Rails.application.routes.url_helpers
|
||||
@@ -20,8 +15,6 @@ module DfcProvider
|
||||
:check_user,
|
||||
:check_accessibility
|
||||
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
products = @enterprise.
|
||||
inventory_variants.
|
||||
|
||||
Reference in New Issue
Block a user