Compare commits
2 Commits
76b970dac6
...
25cd1944e1
Author | SHA1 | Date |
---|---|---|
|
25cd1944e1 | 2 years ago |
|
e46f411734 | 2 years ago |
@ -1,2 +1,3 @@ |
||||
venv |
||||
demo/__pycache__ |
||||
demo/views/__pycache__ |
||||
|
@ -1,6 +1,7 @@ |
||||
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)]) |
||||
|
||||
def setup_routes(app): |
||||
app.router.add_routes( |
||||
[aiohttp.web.get('/', frontend.index), aiohttp.web.post('/button-clicked', frontend.button_clicked)]) |
||||
|
@ -1,14 +1,7 @@ |
||||
import aiohttp |
||||
from demo import create_app |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
app = create_app() |
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
aiohttp.web.run_app(app) |
@ -0,0 +1,2 @@ |
||||
aiohttp~=3.8.4 |
||||
Jinja2~=3.1.2 |
Loading…
Reference in new issue