From 68ce518bf882b971c17160148d3bb651df569e55 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Thu, 2 Dec 2021 22:12:32 +0300 Subject: [PATCH] Meaningful index page --- .gitignore | 1 - static/index.html | 52 +++++++++++++++++++++++++++++++++++++++++++++++ web.py | 4 ++-- 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 static/index.html diff --git a/.gitignore b/.gitignore index eba2b76..eee9253 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -index.html *sqlite3 uwsgi.ini start*.bash diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..2426a84 --- /dev/null +++ b/static/index.html @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PCPS4XBOX
AXAXAX
BGSBGSBGS
COMBATCOMBATCOMBAT
CQCCQCCQC
EXPLORATIONEXPLORATIONEXPLORATION
POWERPLAYPOWERPLAYPOWERPLAY
TRADETRADETRADE
+ In order to access to api, add /api/ to any endpoint + + \ No newline at end of file diff --git a/web.py b/web.py index 592c152..f629821 100644 --- a/web.py +++ b/web.py @@ -119,9 +119,9 @@ app.add_route('/', MainPage()) application = app # for uwsgi -index_file = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static'), 'index.html') +# index_file = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'static'), 'index.html') -utils.build_index_page(app, index_file) +# utils.build_index_page(app, index_file) if __name__ == '__main__': import waitress