Skip to content

Commit

Permalink
move aes to api
Browse files Browse the repository at this point in the history
  • Loading branch information
tposejank committed Jul 31, 2024
1 parent 02515e9 commit b3b76f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions aes/js/aes-mappings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function downloadHotfix() {
fetch('https://raw.githubusercontent.com/FNLookup/data/main/fncentral/hotfixes_en.json').then(r => r.json()).then(r => {
let data = getApiRequestData('https://fnlookup-apiv2.vercel.app/api?fncentral=true&type=hotfixes');
fetch(data.url, data.data).then(r => r.json()).then(r => {
let table = document.getElementById('hotfix-table');

hotfixTL = Object.getOwnPropertyNames(r)
Expand All @@ -21,7 +22,8 @@ function downloadHotfix() {
}

function downloadAes() {
fetch('https://raw.githubusercontent.com/FNLookup/data/main/fncentral/aes.json').then(r => r.json()).then(r => {
let data = getApiRequestData('https://fnlookup-apiv2.vercel.app/api?fncentral=true&type=aes');
fetch(data.url, data.data).then(r => r.json()).then(r => {
console.log(r);

document.getElementById('fn-version').innerHTML = 'Fortnite v' + r.version + ''
Expand Down Expand Up @@ -60,7 +62,8 @@ function downloadAes() {
}

function downloadMappings() {
fetch('https://raw.githubusercontent.com/FNLookup/data/main/fncentral/mappings.json').then(r => r.json()).then(r => {
let data = getApiRequestData('https://fnlookup-apiv2.vercel.app/api?fncentral=true&type=mappings');
fetch(data.url, data.data).then(r => r.json()).then(r => {
console.log(r);

let table = document.getElementById('mappings-table');
Expand Down

0 comments on commit b3b76f8

Please sign in to comment.