改为开发模式下才调用api文档

email_verify
z9hang 11 years ago
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…
Cancel
Save