Update blueprints.py
This commit is contained in:
parent
d4abca0480
commit
c71de1b267
|
@ -14,7 +14,7 @@ FutureStatic = namedtuple('Route',
|
||||||
|
|
||||||
|
|
||||||
class Blueprint:
|
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
|
"""Create a new blueprint
|
||||||
|
|
||||||
:param name: unique name of the blueprint
|
:param name: unique name of the blueprint
|
||||||
|
@ -23,6 +23,7 @@ class Blueprint:
|
||||||
self.name = name
|
self.name = name
|
||||||
self.url_prefix = url_prefix
|
self.url_prefix = url_prefix
|
||||||
self.host = host
|
self.host = host
|
||||||
|
self.version = version
|
||||||
|
|
||||||
self.routes = []
|
self.routes = []
|
||||||
self.websocket_routes = []
|
self.websocket_routes = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user