fix: namespace middleware class for FazerAiPlatformHeader
This commit is contained in:
parent
195713cbfe
commit
dcf2a31539
@ -56,7 +56,7 @@ module Chatwoot
|
|||||||
# Application configuration can go into files in config/initializers
|
# Application configuration can go into files in config/initializers
|
||||||
# -- all .rb files in that directory are automatically loaded after loading
|
# -- all .rb files in that directory are automatically loaded after loading
|
||||||
# the framework and any gems in your application.
|
# the framework and any gems in your application.
|
||||||
config.middleware.use FazerAiPlatformHeader
|
config.middleware.use Middleware::FazerAiPlatformHeader
|
||||||
|
|
||||||
config.generators.javascripts = false
|
config.generators.javascripts = false
|
||||||
config.generators.stylesheets = false
|
config.generators.stylesheets = false
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module Middleware # rubocop:disable Style/ClassAndModuleChildren
|
||||||
class FazerAiPlatformHeader
|
class FazerAiPlatformHeader
|
||||||
def initialize(app)
|
def initialize(app)
|
||||||
@app = app
|
@app = app
|
||||||
@ -11,3 +12,4 @@ class FazerAiPlatformHeader
|
|||||||
[status, headers, response]
|
[status, headers, response]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user