Compare commits
No commits in common. '25cd1944e1672b09aec6a88ad0214a0ef26dcbcd' and '76b970dac6ebac08f31544f439fc9891c94083ae' have entirely different histories.
25cd1944e1
...
76b970dac6
@ -1,3 +1,2 @@ |
||||
venv |
||||
demo/__pycache__ |
||||
demo/views/__pycache__ |
||||
|
@ -1,7 +1,6 @@ |
||||
from .views import frontend |
||||
import aiohttp |
||||
|
||||
|
||||
def setup_routes(app): |
||||
app.router.add_routes( |
||||
[aiohttp.web.get('/', frontend.index), aiohttp.web.post('/button-clicked', frontend.button_clicked)]) |
||||
app.router.add_routes([aiohttp.web.get('/', frontend.index), aiohttp.web.post('/button-clicked', frontend.button_clicked)]) |
||||
|
@ -1,7 +1,14 @@ |
||||
import aiohttp |
||||
from demo import create_app |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
app = create_app() |
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
aiohttp.web.run_app(app) |
@ -1,2 +0,0 @@ |
||||
aiohttp~=3.8.4 |
||||
Jinja2~=3.1.2 |
Loading…
Reference in new issue