This repository has been archived on 2018-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
sleepy/application/config/type_class_map.php

29 lines
728 B
PHP
Raw Normal View History

<?php
/**
* Sleepy - a REST framework
*
*
* A PHP Rest Framework valuing convention over configuration,
* but aiming to be as flexible as possible
*
* @author Timothy J. Warren
* @package Sleepy
*/
return [
// --------------------------------------------------------------------------
// Map mime types to type classes
// --------------------------------------------------------------------------
'application/json' => 'JSON',
'text/yaml' => 'YAML',
'application/yaml' => 'YAML',
'text/html' => 'HTML',
'text/xml' => 'XML',
'application/xml' => 'XML',
// Default mime type for cases without an explicit accept header match
'*/*' => 'text/html'
];
2014-05-14 10:32:31 -04:00
// End of config/type_class_map.php