diff --git a/templates/shared/_layout.html b/templates/shared/_layout.html index e0a6212..6505ef2 100644 --- a/templates/shared/_layout.html +++ b/templates/shared/_layout.html @@ -57,16 +57,14 @@ }; - diff --git a/views/js_cardgame.py b/views/js_cardgame.py index 4d5d63d..077578a 100644 --- a/views/js_cardgame.py +++ b/views/js_cardgame.py @@ -28,6 +28,20 @@ def css(req, resp, file): resp.content = fin.read() +@api.route("/js-cardgame/font/{file}") +def css(req, resp, file): + resp.headers['Content-Type'] = 'application/octet-stream' + full_file = os.path.join( + os.path.dirname(__file__), + '..', + 'js-cardgame', + 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'