return [array_values($title),$nav];
}
- public function method_post_accept() {
+ public function method_post_accept_decode() {
if ( empty($_SERVER['REQUEST_METHOD']) or $_SERVER['REQUEST_METHOD'] != 'POST' ) return;
- #bye($_POST);
- $raw = null;
-# NB 11.12.17 $keys = array_keys($_POST);
-# NB 11.12.17 if (count($keys) == 1 and empty($_POST[$keys[0]])) {
-# NB 11.12.17 $raw = $keys[0];
-# NB 11.12.17 bye($raw);
-# NB 11.12.17 }
+ $raw = null;
foreach (['json','yaml'] as $type) {
}
private function uri_init() {
- $this->method_post_accept();
+ $this->method_post_accept_decode();
+
#
# Parse path, respect params order
#