Contoh berkas konfigurasi lokal katalog permainan 88i.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek data katalog lokal 88i
const localCatalogConfig = {
platform: "88i" ,
supportedOS: ["android" ],
gameList: [
{
id: "100" ,
name: "Sprmkt Spree" ,
category: "Permainan Slot"
},
{
id: "149" ,
name: "Fortune Dragon" ,
category: "Permainan Slot"
}
],
isActive: true
};
function getGameMetadata(id) {
return localCatalogConfig.gameList.find(item => item.id === id) || null ;
}
module.exports = { localCatalogConfig, getGameMetadata }; JSON
{
"platform" : "88i" ,
"supportedOS" : [
"android"
],
"gameList" : [
{
"id" : "100" ,
"name" : "Sprmkt Spree" ,
"category" : "Permainan Slot"
},
{
"id" : "149" ,
"name" : "Fortune Dragon" ,
"category" : "Permainan Slot"
}
],
"isActive" : true
}