remove testing changes
This commit is contained in:
parent
c3e7fbaaff
commit
504a1785d1
12
app/main.py
12
app/main.py
|
@ -26,17 +26,6 @@ from .config import (
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def inspect_rep():
|
|
||||||
@web.middleware
|
|
||||||
async def factory(request, handler):
|
|
||||||
print("Incoming Cookies", request.cookies)
|
|
||||||
response = await handler(request)
|
|
||||||
print("Outgoing Cookies", response.cookies)
|
|
||||||
return response
|
|
||||||
|
|
||||||
return factory
|
|
||||||
|
|
||||||
|
|
||||||
class Indexer:
|
class Indexer:
|
||||||
|
|
||||||
TEMPLATES_ROOT = pathlib.Path(__file__).parent / "templates"
|
TEMPLATES_ROOT = pathlib.Path(__file__).parent / "templates"
|
||||||
|
@ -44,7 +33,6 @@ class Indexer:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.server = web.Application(
|
self.server = web.Application(
|
||||||
middlewares=[
|
middlewares=[
|
||||||
inspect_rep(),
|
|
||||||
middleware_factory(),
|
middleware_factory(),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue