diff --git a/b3-dev/api/api-php/index.php b/b3-dev/api/api-php/index.php index e633cca..651f4a4 100644 --- a/b3-dev/api/api-php/index.php +++ b/b3-dev/api/api-php/index.php @@ -1,6 +1,7 @@ 'active') ); + break; + + case "/key/" : + if($vars['REQUEST_METHOD'] == "POST") + { + + } + else + { + header('HTTP/1.1 405 Method Not Allowed'); + echo json_encode( (object) array('error'=>'/key/ requires POST method') ); + } + break; + + default : + // header('HTTP/1.1 404 Not Found'); + header('HTTP/1.1 501 Not Implemented'); + echo json_encode( (object) array('error'=>'This path has not been implemented') ); + break; + } +