You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
728 B
29 lines
728 B
<?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' |
|
]; |
|
|
|
// End of config/type_class_map.php
|