Deploy Ladill Mini / deploy (push) Successful in 23s
Staff-facing counter register at pos.ladill.com with catalog cart, cash and MoMo/card checkout via Ladill Pay, CRM timeline/import, invoice prefill, and Merchant catalog import. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
788 B
PHP
28 lines
788 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\WellKnown;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class AssetLinksController extends Controller
|
|
{
|
|
public function __invoke(): JsonResponse
|
|
{
|
|
$fingerprints = config('android_app_links.sha256_cert_fingerprints', []);
|
|
|
|
abort_if($fingerprints === [], 404);
|
|
|
|
return response()->json([
|
|
[
|
|
'relation' => ['delegate_permission/common.handle_all_urls'],
|
|
'target' => [
|
|
'namespace' => 'android_app',
|
|
'package_name' => config('android_app_links.package_name'),
|
|
'sha256_cert_fingerprints' => $fingerprints,
|
|
],
|
|
],
|
|
], 200, [], JSON_UNESCAPED_SLASHES);
|
|
}
|
|
}
|