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

This commit is contained in:
z9hang 2015-01-27 17:34:02 +08:00
parent 91a8078cae
commit f793cff398
1 changed files with 1 additions and 1 deletions

View File

@ -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