added JS UI and carddeck

This commit is contained in:
2020-11-30 23:16:05 +01:00
parent 7191a778be
commit 1145fc7fa0
64 changed files with 18 additions and 5 deletions

View File

@ -15,6 +15,19 @@ def css(req, resp, file):
with open(full_file, encoding='utf-8') as fin:
resp.content = fin.read()
@api.route("/js-cardgame/deck/{file}")
def css(req, resp, file):
resp.headers['Content-Type'] = 'image/jpeg'
full_file = os.path.join(
os.path.dirname(__file__),
'..',
'deck/',
file
)
with open(full_file, 'rb') as fin:
resp.content = fin.read()
@api.route("/js-cardgame/js/{file}")
def css(req, resp, file):
resp.headers['Content-Type'] = 'application/javascript'