prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  list_events url is inconsistent in API v2
  The url is `/events/` whereas it should be `/events` to be consistent with other urls. 
  
  
  </issue>
  <code>
  [start of open_event/api/events.py]
  1 from flask.ext.restplus import Resource, Namespace, fields
  2 
  3 from open_event.models.event import Event as EventModel
  4 from .helpers import get_object_list, get_object_or_404
  5 
  6 api = Namespace('events', description='Events')
  7 
  8 EVENT = api.model('Event', {
  9     'id': fields.Integer(required=True),
  10     'name': fields.String,
  11     'email': fields.String,
  12     'color': fields.String,
  13     'logo': fields.String,
  14     'start_time': fields.DateTime,
  15     'end_time': fields.DateTime,
  16     'latitude': fields.Float,
  17     'longitude': fields.Float,
  18     'slogan': fields.String,
  19     'url': fields.String,
  20     'location_name': fields.String,
  21 })
  22 
  23 
  24 @api.route('/<int:event_id>')
  25 @api.param('event_id')
  26 @api.response(404, 'Event not found')
  27 class Event(Resource):
  28     @api.doc('get_event')
  29     @api.marshal_with(EVENT)
  30     def get(self, event_id):
  31         """Fetch an event given its id"""
  32         return get_object_or_404(EventModel, event_id)
  33 
  34 
  35 @api.route('/')
  36 class EventList(Resource):
  37     @api.doc('list_events')
  38     @api.marshal_list_with(EVENT)
  39     def get(self):
  40         """List all events"""
  41         return get_object_list(EventModel)
  42
  [end of open_event/api/events.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/open_event/api/events.py b/open_event/api/events.py
  --- a/open_event/api/events.py
  +++ b/open_event/api/events.py
  @@ -32,7 +32,7 @@
           return get_object_or_404(EventModel, event_id)
   
   
  -@api.route('/')
  +@api.route('')
   class EventList(Resource):
       @api.doc('list_events')
       @api.marshal_list_with(EVENT)
  
verification_info: {"golden_diff": "diff --git a/open_event/api/events.py b/open_event/api/events.py\n--- a/open_event/api/events.py\n+++ b/open_event/api/events.py\n@@ -32,7 +32,7 @@\n         return get_object_or_404(EventModel, event_id)\n \n \n-@api.route('/')\n+@api.route('')\n class EventList(Resource):\n     @api.doc('list_events')\n     @api.marshal_list_with(EVENT)\n", "issue": "list_events url is inconsistent in API v2\nThe url is `/events/` whereas it should be `/events` to be consistent with other urls. \n\n", "before_files": [{"content": "from flask.ext.restplus import Resource, Namespace, fields\n\nfrom open_event.models.event import Event as EventModel\nfrom .helpers import get_object_list, get_object_or_404\n\napi = Namespace('events', description='Events')\n\nEVENT = api.model('Event', {\n    'id': fields.Integer(required=True),\n    'name': fields.String,\n    'email': fields.String,\n    'color': fields.String,\n    'logo': fields.String,\n    'start_time': fields.DateTime,\n    'end_time': fields.DateTime,\n    'latitude': fields.Float,\n    'longitude': fields.Float,\n    'slogan': fields.String,\n    'url': fields.String,\n    'location_name': fields.String,\n})\n\n\n@api.route('/<int:event_id>')\n@api.param('event_id')\n@api.response(404, 'Event not found')\nclass Event(Resource):\n    @api.doc('get_event')\n    @api.marshal_with(EVENT)\n    def get(self, event_id):\n        \"\"\"Fetch an event given its id\"\"\"\n        return get_object_or_404(EventModel, event_id)\n\n\n@api.route('/')\nclass EventList(Resource):\n    @api.doc('list_events')\n    @api.marshal_list_with(EVENT)\n    def get(self):\n        \"\"\"List all events\"\"\"\n        return get_object_list(EventModel)\n", "path": "open_event/api/events.py"}]}