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