diff --git a/src/endpoints.json b/src/endpoints.json index 5e8e590..428697c 100644 --- a/src/endpoints.json +++ b/src/endpoints.json @@ -12,7 +12,6 @@ "aurora": "https://earthmc.net/map/aurora/standalone/MySQL_configuration.php" }, "towny": { - "v1/aurora":"https://api.earthmc.net/v1/aurora", - "v2/aurora":"https://api.earthmc.net/v2/aurora" + "aurora": "https://api.earthmc.net/v2/aurora" } } \ No newline at end of file diff --git a/src/utils/endpoint.ts b/src/utils/endpoint.ts index b9c0071..e1e67ad 100644 --- a/src/utils/endpoint.ts +++ b/src/utils/endpoint.ts @@ -62,11 +62,11 @@ const mapData = async (mapName: ValidMapName) => { return res as MapResponse } -const townyData = async (endpoint = '', version = 'v2') => { +const townyData = async (endpoint = '') => { if (endpoint.startsWith("/")) endpoint.replace("/", "") - const url = get("towny", `${version}/aurora`) + const url = get("towny", "aurora") return await asJSON(`${url}${endpoint}?${genRandomString()}`) as unknown }