|
|
@ -37,6 +37,10 @@ from .templating import DispatchingJinjaLoader, Environment, \ |
|
|
|
_default_template_ctx_processor |
|
|
|
_default_template_ctx_processor |
|
|
|
from .wrappers import Request, Response |
|
|
|
from .wrappers import Request, Response |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# **NEW |
|
|
|
|
|
|
|
from .models.methods import Router |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# a singleton sentinel value for parameter defaults |
|
|
|
# a singleton sentinel value for parameter defaults |
|
|
|
_sentinel = object() |
|
|
|
_sentinel = object() |
|
|
|
|
|
|
|
|
|
|
@ -363,6 +367,10 @@ class Flask(_PackageBoundObject): |
|
|
|
' A relative path was given instead.' |
|
|
|
' A relative path was given instead.' |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# NEW |
|
|
|
|
|
|
|
self.router = Router(self) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#: Holds the path to the instance folder. |
|
|
|
#: Holds the path to the instance folder. |
|
|
|
#: |
|
|
|
#: |
|
|
|
#: .. versionadded:: 0.8 |
|
|
|
#: .. versionadded:: 0.8 |
|
|
|