Contoh skrip konfigurasi objek data lokal platform.
JavaScript
// Konfigurasi metadata lokal platform 8xx
const platformConfig = {
brand: "8xx",
domain: "6n6ngame.com",
country: "id",
defaultLocale: "id-ID",
games: [
{ id: "009", name: "Win Win Won", category: "Permainan Slot" },
{ id: "138", name: "Cruise Royale", category: "Permainan Slot" },
{ id: "019", name: "Dragon Legend", category: "Permainan Slot" },
{ id: "026", name: "Santas Gift Rush", category: "Permainan Slot" },
{ id: "131", name: "Hawaiian Tiki", category: "Permainan Slot" }
]
};
function getFeaturedGame(config) {
return config.games[0] || null;
}
module.exports = { platformConfig, getFeaturedGame };
JSON
{
"brand": "8xx",
"domain": "6n6ngame.com",
"country": "id",
"defaultLocale": "id-ID",
"games": [
{
"id": "009",
"name": "Win Win Won",
"category": "Permainan Slot"
},
{
"id": "138",
"name": "Cruise Royale",
"category": "Permainan Slot"
},
{
"id": "019",
"name": "Dragon Legend",
"category": "Permainan Slot"
},
{
"id": "026",
"name": "Santas Gift Rush",
"category": "Permainan Slot"
},
{
"id": "131",
"name": "Hawaiian Tiki",
"category": "Permainan Slot"
}
]
}