Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Update BingServer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xbzstudio authored Jun 9, 2023
1 parent d2e4899 commit d78cf4f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions BingServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,5 @@ async def get_site(filename):
content_type, _ = guess_type(filename)
return Response(content, media_type=content_type)

@APP.get("/phoneui")
async def get_site():
filename = str(os.path.dirname(os.path.abspath(__file__))) + '/static/phone.html'
with open(filename, mode='r', encoding='utf-8') as f:
content = f.read()

content_type, _ = guess_type(filename)
return Response(content, media_type=content_type)

if __name__ == '__main__':
uvicorn.run(APP, host=HOST, port=PORT)
uvicorn.run(APP, host=HOST, port=PORT)

0 comments on commit d78cf4f

Please sign in to comment.