feat: basic web service by fastapi and uvicorn

This commit is contained in:
2025-11-11 21:14:07 +08:00
parent 7cea2eb8a5
commit 268eb8be2b
5 changed files with 289 additions and 0 deletions

11
src/main.py Normal file
View File

@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
# created by mmmy on 2025-09-27
import uvicorn
from web.api import api
# 主函数
def main():
uvicorn.run(api, host='0.0.0.0', port=8099)
if __name__ == "__main__":
main()