Add minimum_client_version
This commit is contained in:
parent
dc52028474
commit
e3a325028d
9
api/actions/version.php
Normal file
9
api/actions/version.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
exitWithJson(["status" => "OK", "version" => $SETTINGS["minimum_client_version"]]);
|
@ -8,9 +8,10 @@
|
||||
|
||||
$APIS = [
|
||||
"ping" => [
|
||||
"load" => "ping.php",
|
||||
"vars" => [
|
||||
]
|
||||
"load" => "ping.php"
|
||||
],
|
||||
"version" => [
|
||||
"load" => "version.php"
|
||||
],
|
||||
"inventory" => [
|
||||
"load" => "inventory.php"
|
||||
|
@ -36,6 +36,8 @@ $SETTINGS = [
|
||||
// API key
|
||||
"key" => "123"
|
||||
],
|
||||
// Minimum game version to allow
|
||||
"minimum_client_version" => "2.0.0",
|
||||
// Settings for Point of Interest server to get place data from
|
||||
// https://source.netsyms.com/Netsyms/PointsOfInterestAPI
|
||||
"poi" => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user