Files
ladill-pos/app/Http/Controllers/WellKnown/AssetLinksController.php
T
isaaccladandCursor e5d2b84388
Deploy Ladill Mini / deploy (push) Successful in 23s
Add Ladill POS v1 — register, Pay checkout, and commerce links.
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>
2026-06-23 22:52:24 +00:00

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);
}
}