mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Updating WebHost structure
This commit is contained in:
@@ -102,17 +102,43 @@ games_list = {
|
||||
victory!""")
|
||||
}
|
||||
|
||||
|
||||
# Player settings pages
|
||||
@app.route('/games/<game>/player-settings')
|
||||
def player_settings(game):
|
||||
return render_template(f"/games/{game}/playerSettings.html")
|
||||
|
||||
|
||||
# Zelda3 pages
|
||||
@app.route('/games/zelda3/<string:page>')
|
||||
def zelda3_pages(page):
|
||||
return render_template(f"/games/zelda3/{page}.html")
|
||||
|
||||
|
||||
# Factorio pages
|
||||
@app.route('/games/factorio/<string:page>')
|
||||
def factorio_pages(page):
|
||||
return render_template(f"/games/factorio/{page}.html")
|
||||
|
||||
|
||||
# Minecraft pages
|
||||
@app.route('/games/minecraft/<string:page>')
|
||||
def minecraft_pages(page):
|
||||
return render_template(f"/games/factorio/{page}.html")
|
||||
|
||||
|
||||
# Game landing pages
|
||||
@app.route('/games/<game>')
|
||||
def game_page(game):
|
||||
return render_template(f"/games/{game}/{game}.html")
|
||||
|
||||
|
||||
# List of supported games
|
||||
@app.route('/games')
|
||||
def games():
|
||||
return render_template("games/games.html", games_list=games_list)
|
||||
|
||||
|
||||
@app.route('/games/<game>')
|
||||
def game_page(game):
|
||||
return render_template(f"/games/{game}"+".html")
|
||||
|
||||
|
||||
|
||||
@app.route('/tutorial/<string:game>/<string:file>/<string:lang>')
|
||||
def tutorial(game, file, lang):
|
||||
return render_template("tutorial.html", game=game, file=file, lang=lang)
|
||||
@@ -124,7 +150,7 @@ def tutorial_landing():
|
||||
|
||||
|
||||
@app.route('/weighted-settings')
|
||||
def player_settings():
|
||||
def weighted_settings():
|
||||
return render_template("weightedSettings.html")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user