由于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的配置?