1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Fix root handler for web-ui

This commit is contained in:
grossmj 2020-05-06 15:38:16 +09:30
parent 8df8b73c8f
commit 0a77233631

View File

@ -34,7 +34,8 @@ class IndexHandler:
async def index(request, response): async def index(request, response):
#FIXME: this could probably be handled in a better way #FIXME: this could probably be handled in a better way
static = get_resource(os.path.join('static', 'web-ui', 'bundled')) static = get_resource(os.path.join('static', 'web-ui', 'index.html'))
print(static)
# guesstype prefers to have text/html type than application/javascript # guesstype prefers to have text/html type than application/javascript
# which results with warnings in Firefox 66 on Windows # which results with warnings in Firefox 66 on Windows