HTTP/VistA protocol switcher & debugger

This commit is contained in:
2022-10-01 07:31:25 -04:00
parent 24da5347f4
commit a30ee4a3da
2 changed files with 73 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ from flask.json.provider import DefaultJSONProvider
import rpc
import util
import protoswitch
import logging
@@ -159,4 +160,4 @@ if __name__ == '__main__':
port = get_port()
print(f'http://localhost:{port}/#{app.secret}')
webbrowser.open(f'http://localhost:{port}/#{app.secret}')
app.run(port=port)
app.run(port=port, request_handler=protoswitch.SwitchingRequestHandler)