From 90d1ab73308ca220e23a02b1bc9e947d57fac9c7 Mon Sep 17 00:00:00 2001 From: lan-air Date: Sat, 10 Dec 2022 21:43:12 +0800 Subject: [PATCH] =?UTF-8?q?main.py=20=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index 0921a1b..e668afa 100644 --- a/main.py +++ b/main.py @@ -202,3 +202,9 @@ async def share(text: str = Form(default=None), style: str = Form(default='2'), 'msg': '分享成功,请点击文件箱查看取件码', 'data': {'code': code, 'key': key, 'name': name, 'text': _text} } + + +if __name__ == '__main__': + import uvicorn + + uvicorn.run('main:app', host='0.0.0.0', port=12345)