改为开发模式下才调用api文档
This commit is contained in:
parent
91a8078cae
commit
f793cff398
|
@ -33,7 +33,7 @@ module Mobile
|
|||
mount Apis::Homeworks
|
||||
|
||||
#add_swagger_documentation ({api_version: 'v1', base_path: 'http://u06.shellinfo.cn/trustie/api'})
|
||||
add_swagger_documentation ({api_version: 'v1', base_path: '/api'})
|
||||
add_swagger_documentation ({api_version: 'v1', base_path: '/api'}) if Rails.env.devlopment?
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue