File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
examples/miniapps/aiohttp Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ The output should be something like:
110110 giphynavigator/application.py 12 0 100%
111111 giphynavigator/containers.py 6 0 100%
112112 giphynavigator/giphy.py 14 9 36%
113+ giphynavigator/handlers.py 9 0 100%
113114 giphynavigator/services.py 9 1 89%
114115 giphynavigator/tests.py 37 0 100%
115- giphynavigator/views.py 9 0 100%
116116 ---------------------------------------------------
117117 TOTAL 92 15 84%
Original file line number Diff line number Diff line change 33from aiohttp import web
44
55from .containers import Container
6- from . import views
6+ from . import handlers
77
88
99def create_app ():
@@ -12,13 +12,13 @@ def create_app():
1212 container .config .from_yaml ('config.yml' )
1313 container .config .giphy .api_key .from_env ('GIPHY_API_KEY' )
1414
15- container .wire (modules = [views ])
15+ container .wire (modules = [handlers ])
1616
1717 app = web .Application ()
1818 app .container = container
1919
2020 app .add_routes ([
21- web .get ('/' , views .index ),
21+ web .get ('/' , handlers .index ),
2222 ])
2323
2424 return app
Original file line number Diff line number Diff line change 1- """Views module."""
1+ """Handlers module."""
22
33from aiohttp import web
44from dependency_injector .wiring import Provide
You can’t perform that action at this time.
0 commit comments