added version to api

This commit is contained in:
tracer 2024-04-26 19:24:04 +02:00
parent 578f76426e
commit 71a275198f
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"name": "24unix/bindapi",
"description": "manage Bind9 DNS server via REST API",
"version": "1.0.9",
"build_number": "358",
"build_number": "359",
"authors": [
{
"name": "Micha Espey",

View File

@ -673,7 +673,7 @@ class RequestController
$command = $this->uri[2];
// 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))) {
$this->status = "404 Not Found";