Add a /sitemap to the WebHost (#418)

This commit is contained in:
Chris Wilson
2022-04-05 01:14:30 -04:00
committed by GitHub
parent 944571ea89
commit f2055daf1a
5 changed files with 57 additions and 4 deletions

View File

@@ -207,6 +207,15 @@ def get_datapackge():
return Response(json.dumps(network_data_package, indent=4), mimetype="text/plain")
@app.route('/sitemap')
def get_sitemap():
available_games = []
for game, world in AutoWorldRegister.world_types.items():
if not world.hidden:
available_games.append(game)
return render_template("siteMap.html", games=available_games)
from WebHostLib.customserver import run_server_process
from . import tracker, upload, landing, check, generate, downloads, api # to trigger app routing picking up on it