prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <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).
  
  </issue>
  <code>
  [start of mindsdb/api/http/namespaces/util.py]
  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 of mindsdb/api/http/namespaces/util.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
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"}]}