From c71de1b2675f7a51a5a8c174f03e8b784ee43db4 Mon Sep 17 00:00:00 2001 From: Typhon Date: Tue, 27 Jun 2017 14:34:14 -0700 Subject: [PATCH] Update blueprints.py --- sanic/blueprints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sanic/blueprints.py b/sanic/blueprints.py index b3866cbd..bac99b5c 100644 --- a/sanic/blueprints.py +++ b/sanic/blueprints.py @@ -14,7 +14,7 @@ FutureStatic = namedtuple('Route', class Blueprint: - def __init__(self, name, url_prefix=None, host=None): + def __init__(self, name, url_prefix=None, host=None, version='1.0.0'): """Create a new blueprint :param name: unique name of the blueprint @@ -23,6 +23,7 @@ class Blueprint: self.name = name self.url_prefix = url_prefix self.host = host + self.version = version self.routes = [] self.websocket_routes = []