Make map endpoints configurable

This commit is contained in:
sqozz 2021-05-06 19:26:51 +02:00
parent 0fa20ed0b4
commit d224acc171
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
</div>
</div>
<div class="row">
<a class="item map" href="https://play.geekify.de/map" target="_blank">
<a class="item map" href="{{map_url}}" target="_blank">
<div class="icon"></div>
<div class="text">Map</div>
</a>
@ -46,7 +46,7 @@ Datapacks:
% end
Datapacks can be found on https://vanillatweaks.net/</textarea>
<a class="subitem worlddownload" href="/map/recent.zip" target="_blank">
<a class="subitem worlddownload" href="{{map_download_url}}" target="_blank">
<div class="icon"></div>
<div class="text">Download world</div>
</a>

View File

@ -20,7 +20,7 @@ BG_IMAGES = listdir("./static/img/background")
def index():
print(server_details())
players = currentPlayerData()
return template("html/index.html", **{"player_count": players["count"]["current"] , "max_players": players["count"]["max"], "news": news(), "donations": donations(), "server_details": server_details()})
return template("html/index.html", **{"player_count": players["count"]["current"] , "max_players": players["count"]["max"], "news": news(), "donations": donations(), "server_details": server_details(), "map_url": CONFIG["external"]["map"], "map_download_url": CONFIG["external"]["map_download"]})
@route("/getPlayerSkins")
def getPlayerSkins():