Apitome http_basic_authentication不可配置

时间:2019-05-21 14:25:12

标签: ruby-on-rails apitome

由于this提交已从remote_docs gem中删除了Apitome配置,因此http_basic_authenthication不再起作用。

config/initializers/apitome.rb

  config.remote_docs = true # **Can't use this anymore** because of `config/initializers/apitome.rb:54:in `block in <main>': undefined method `remote_docs=' for Apitome::Configuration:Class (NoMethodError)`

  # If the remote_docs is set to true, this URL is used as the base for
  # the doc location. This should be the root of the doc location, where
  # the readme is located. It uses the doc_path setting to build the
  # URLs for the API documentation. This defaults to nil.
  config.http_basic_authentication = ['user', 'password'] # **Doesn't work anymore**

现在有没有办法将http基本身份验证用作Apitome的配置?

0 个答案:

没有答案