prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Add endpoint for mindsdb version
  Add HTTP route to get a version of mindsdb: /util/version/
  That should return as mindsb version in JSON view:
  ```
  {
    "mindsdb": "2.11.2"
  }
  ```
  The new endpoint needs to be added in [Utils](https://github.com/mindsdb/mindsdb/blob/staging/mindsdb/api/http/namespaces/util.py).
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `mindsdb/api/http/namespaces/util.py`
  Content:
  ```
  1 from flask import request
  2 from flask_restx import Resource, abort
  3 
  4 from mindsdb.api.http.namespaces.configs.util import ns_conf
  5 
  6 
  7 @ns_conf.route('/ping')
  8 class Ping(Resource):
  9     @ns_conf.doc('get_ping')
  10     def get(self):
  11         '''Checks server avaliable'''
  12         return {'status': 'ok'}
  13 
  14 
  15 @ns_conf.route('/shutdown')
  16 class Shutdown(Resource):
  17     @ns_conf.doc('get_shutdown')
  18     def get(self):
  19         '''Shutdown server'''
  20         if request.host.startswith('127.0.0.1') or request.host.startswith('localhost'):
  21             func = request.environ.get('werkzeug.server.shutdown')
  22             if func is None:
  23                 return '', 500
  24             func()
  25             return '', 200
  26         abort(403, "")
  27
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/mindsdb/api/http/namespaces/util.py b/mindsdb/api/http/namespaces/util.py
  --- a/mindsdb/api/http/namespaces/util.py
  +++ b/mindsdb/api/http/namespaces/util.py
  @@ -2,7 +2,7 @@
   from flask_restx import Resource, abort
   
   from mindsdb.api.http.namespaces.configs.util import ns_conf
  -
  +from mindsdb import __about__
   
   @ns_conf.route('/ping')
   class Ping(Resource):
  @@ -24,3 +24,12 @@
               func()
               return '', 200
           abort(403, "")
  +
  +                
  +@ns_conf.route('/util/version')
  +class Version(Resource):
  +    @ns_conf.doc('get_endpoint')
  +    def get(self):
  +        '''Check endpoint'''
  +        return {'mindsdb': "{__about__.__version__}"}
  +
  
verification_info: {"golden_diff": "diff --git a/mindsdb/api/http/namespaces/util.py b/mindsdb/api/http/namespaces/util.py\n--- a/mindsdb/api/http/namespaces/util.py\n+++ b/mindsdb/api/http/namespaces/util.py\n@@ -2,7 +2,7 @@\n from flask_restx import Resource, abort\n \n from mindsdb.api.http.namespaces.configs.util import ns_conf\n-\n+from mindsdb import __about__\n \n @ns_conf.route('/ping')\n class Ping(Resource):\n@@ -24,3 +24,12 @@\n             func()\n             return '', 200\n         abort(403, \"\")\n+\n+                \n+@ns_conf.route('/util/version')\n+class Version(Resource):\n+    @ns_conf.doc('get_endpoint')\n+    def get(self):\n+        '''Check endpoint'''\n+        return {'mindsdb': \"{__about__.__version__}\"}\n+\n", "issue": "Add endpoint for mindsdb version\nAdd HTTP route to get a version of mindsdb: /util/version/\r\nThat should return as mindsb version in JSON view:\r\n```\r\n{\r\n  \"mindsdb\": \"2.11.2\"\r\n}\r\n```\r\nThe new endpoint needs to be added in [Utils](https://github.com/mindsdb/mindsdb/blob/staging/mindsdb/api/http/namespaces/util.py).\n", "before_files": [{"content": "from flask import request\nfrom flask_restx import Resource, abort\n\nfrom mindsdb.api.http.namespaces.configs.util import ns_conf\n\n\n@ns_conf.route('/ping')\nclass Ping(Resource):\n    @ns_conf.doc('get_ping')\n    def get(self):\n        '''Checks server avaliable'''\n        return {'status': 'ok'}\n\n\n@ns_conf.route('/shutdown')\nclass Shutdown(Resource):\n    @ns_conf.doc('get_shutdown')\n    def get(self):\n        '''Shutdown server'''\n        if request.host.startswith('127.0.0.1') or request.host.startswith('localhost'):\n            func = request.environ.get('werkzeug.server.shutdown')\n            if func is None:\n                return '', 500\n            func()\n            return '', 200\n        abort(403, \"\")\n", "path": "mindsdb/api/http/namespaces/util.py"}], "after_files": [{"content": "from flask import request\nfrom flask_restx import Resource, abort\n\nfrom mindsdb.api.http.namespaces.configs.util import ns_conf\nfrom mindsdb import __about__\n\n@ns_conf.route('/ping')\nclass Ping(Resource):\n    @ns_conf.doc('get_ping')\n    def get(self):\n        '''Checks server avaliable'''\n        return {'status': 'ok'}\n\n\n@ns_conf.route('/shutdown')\nclass Shutdown(Resource):\n    @ns_conf.doc('get_shutdown')\n    def get(self):\n        '''Shutdown server'''\n        if request.host.startswith('127.0.0.1') or request.host.startswith('localhost'):\n            func = request.environ.get('werkzeug.server.shutdown')\n            if func is None:\n                return '', 500\n            func()\n            return '', 200\n        abort(403, \"\")\n\n                \n@ns_conf.route('/util/version')\nclass Version(Resource):\n    @ns_conf.doc('get_endpoint')\n    def get(self):\n        '''Check endpoint'''\n        return {'mindsdb': \"{__about__.__version__}\"}\n    \n", "path": "mindsdb/api/http/namespaces/util.py"}]}