forked from tilera/webapi
fix mpt hardcoding
This commit is contained in:
parent
10448793f3
commit
cc52fe4630
8
mpt.php
8
mpt.php
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
include "maven/mavenresolv.php";
|
include 'vars.php';
|
||||||
|
|
||||||
if ($_SERVER["PATH_INFO"] == "/latest") {
|
if ($_SERVER["PATH_INFO"] == "/latest") {
|
||||||
header('Content-Type: text/plain');
|
header('Content-Type: text/plain');
|
||||||
echo "https://data.tilera.xyz/file/mpt/mpt-1.2-SNAPSHOT.jar";
|
echo $mptlatest;
|
||||||
} elseif ($_SERVER["PATH_INFO"] == "/latestnew") {
|
} elseif ($_SERVER["PATH_INFO"] == "/script") {
|
||||||
echo mavenLatest("ley.anvil", "modpacktools");
|
echo "WIP";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue