Make map endpoints configurable
This commit is contained in:
parent
0fa20ed0b4
commit
d224acc171
|
@ -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>
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue