break; default: break; } break; ################################################## # Themes # ################################################## ################################################## # Themes # ################################################## case 'themes': switch ($method) { case 'GET': if (isset($segments[1])) { $response = $Cosmo->themesRead($segments[1]); } else { $response = $Cosmo->themesRead(); } break; case 'POST': break; case 'PUT': $theme = isset($_PUT['theme']) ? $_PUT['theme'] : ''; if ($role === 'admin') { $response = $Cosmo->themesUpdate($theme); } break; case 'DELETE': break; }