a2d85c3354
Build Docker Image / build-frontend (push) Successful in 47s
Co-authored-by: ISMAIL MASSERAN <topaz@Mac.dlinkrouter.local> Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local> Reviewed-on: #11
10 lines
350 B
PHP
10 lines
350 B
PHP
<?php
|
|
|
|
$default_port = '17321';
|
|
$getReaderEndpoint = fn($x) => 'http://localhost:' . $x . '/read';
|
|
|
|
return[
|
|
'endpoint' => env('MYKAD_READER_ENDPOINT', $getReaderEndpoint(env('MYKAD_READER_PORT', $default_port))),
|
|
'enabled_cawangan' => array_map(fn ($cawangan) => trim($cawangan), explode(',', env('MYKAD_READER_ENABLED_CAWANGAN'))) ?? [],
|
|
];
|