diff --git a/api/index.php b/api/index.php index d3b5ff4f..5c1efd15 100644 --- a/api/index.php +++ b/api/index.php @@ -364,6 +364,11 @@ $pref_name = db_escape_string($_REQUEST["pref_name"]); print json_encode(array("value" => get_pref($link, $pref_name))); break; + + default: + print json_encode(array("error" => 'UNKNOWN_METHOD')); + break; + } db_close($link);