Skip to content

Commit 90d1ab7

Browse files
author
lan-air
committed
main.py 启动
1 parent f4ba561 commit 90d1ab7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,9 @@ async def share(text: str = Form(default=None), style: str = Form(default='2'),
202202
'msg': '分享成功,请点击文件箱查看取件码',
203203
'data': {'code': code, 'key': key, 'name': name, 'text': _text}
204204
}
205+
206+
207+
if __name__ == '__main__':
208+
import uvicorn
209+
210+
uvicorn.run('main:app', host='0.0.0.0', port=12345)

0 commit comments

Comments
 (0)