added version to api
This commit is contained in:
parent
578f76426e
commit
71a275198f
|
@ -2,7 +2,7 @@
|
||||||
"name": "24unix/bindapi",
|
"name": "24unix/bindapi",
|
||||||
"description": "manage Bind9 DNS server via REST API",
|
"description": "manage Bind9 DNS server via REST API",
|
||||||
"version": "1.0.9",
|
"version": "1.0.9",
|
||||||
"build_number": "358",
|
"build_number": "359",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Micha Espey",
|
"name": "Micha Espey",
|
||||||
|
|
|
@ -673,7 +673,7 @@ class RequestController
|
||||||
$command = $this->uri[2];
|
$command = $this->uri[2];
|
||||||
|
|
||||||
// use my router class from address book?
|
// use my router class from address book?
|
||||||
$routes = ['domains', 'ping', 'apidoc', 'dyndns'];
|
$routes = ['ping', 'version', 'domains', 'apidoc', 'dyndns'];
|
||||||
|
|
||||||
if (empty($command) || !(in_array(needle: $command, haystack: $routes))) {
|
if (empty($command) || !(in_array(needle: $command, haystack: $routes))) {
|
||||||
$this->status = "404 Not Found";
|
$this->status = "404 Not Found";
|
||||||
|
|
Loading…
Reference in New Issue