add test project
Showing
5 changed files
with
20 additions
and
0 deletions
test_project/logs/test.log
0 → 100644
File mode changed
test_project/main.py
0 → 100644
| 1 | from sanic import Sanic | ||
| 2 | from sanic.response import text | ||
| 3 | from utils.tools import tool_test | ||
| 4 | |||
| 5 | app = Sanic("MyHelloWorldApp") | ||
| 6 | |||
| 7 | |||
| 8 | @app.get("/") | ||
| 9 | async def hello_world(request): | ||
| 10 | return text("Hello, world.") | ||
| 11 | |||
| 12 | |||
| 13 | if __name__ == '__main__': | ||
| 14 | tool_test() | ||
| 15 | app.run(host='0.0.0.0', port=1337, access_log=False) | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
test_project/test.py
0 → 100644
| 1 | print('test') |
test_project/utils/tools.py
0 → 100644
-
Please register or sign in to post a comment