add game to server

This commit is contained in:
Alberto Xamin 2020-11-30 13:31:48 +01:00
parent 90959bcc62
commit 6685ac2ce2
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -10,6 +10,7 @@ from bang.players import Player
sio = socketio.Server(cors_allowed_origins="*") sio = socketio.Server(cors_allowed_origins="*")
app = socketio.WSGIApp(sio, static_files={ app = socketio.WSGIApp(sio, static_files={
'/': {'content_type': 'text/html', 'filename': 'index.html'}, '/': {'content_type': 'text/html', 'filename': 'index.html'},
'/game': {'content_type': 'text/html', 'filename': 'index.html'},
'/favicon.ico': {'filename': 'favicon.ico'}, '/favicon.ico': {'filename': 'favicon.ico'},
'/img/icons': './img/icons', '/img/icons': './img/icons',
'/manifest.json': {'filename': 'manifest.json'}, '/manifest.json': {'filename': 'manifest.json'},