Реализация Page и DataCardWidget
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
require_relative "boot"
|
||||
|
||||
require "rails/all"
|
||||
|
||||
# Require the gems listed in Gemfile, including any gems
|
||||
# you've limited to :test, :development, or :production.
|
||||
Bundler.require(*Rails.groups)
|
||||
|
||||
module ArmstrongVisionApi
|
||||
class Application < Rails::Application
|
||||
config.load_defaults 8.0
|
||||
config.autoload_lib(ignore: %w[assets tasks])
|
||||
config.api_only = true
|
||||
|
||||
config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
origins '*'
|
||||
resource '*',
|
||||
headers: :any,
|
||||
methods: %i[get post put patch delete options head]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user