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
|
||||
include "maven/mavenresolv.php";
|
||||
include 'vars.php';
|
||||
|
||||
if ($_SERVER["PATH_INFO"] == "/latest") {
|
||||
header('Content-Type: text/plain');
|
||||
echo "https://data.tilera.xyz/file/mpt/mpt-1.2-SNAPSHOT.jar";
|
||||
} elseif ($_SERVER["PATH_INFO"] == "/latestnew") {
|
||||
echo mavenLatest("ley.anvil", "modpacktools");
|
||||
echo $mptlatest;
|
||||
} elseif ($_SERVER["PATH_INFO"] == "/script") {
|
||||
echo "WIP";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue