config.php 1.2 KB

1234567891011121314151617181920212223
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | TOPThink [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2011 http://topthink.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // $Id: config.php 2668 2012-01-26 13:07:16Z liu21st $
  12. return array(
  13. 'REST_METHOD_LIST' => 'get,post,put,delete', // 允许的请求类型列表
  14. 'REST_DEFAULT_METHOD' => 'get', // 默认请求类型
  15. 'REST_CONTENT_TYPE_LIST' => 'html,xml,json,rss', // REST允许请求的资源类型列表
  16. 'REST_DEFAULT_TYPE' => 'html', // 默认的资源类型
  17. 'REST_OUTPUT_TYPE' => array( // REST允许输出的资源类型列表
  18. 'xml' => 'application/xml',
  19. 'json' => 'application/json',
  20. 'html' => 'text/html',
  21. ),
  22. );