feat(twa): assetlinks.json pra verificar APK Android (remove barra URL)
This commit is contained in:
parent
36ea8f006b
commit
f83ae389bc
1 changed files with 14 additions and 0 deletions
|
|
@ -55,6 +55,20 @@ function requireAuth(req, res, next) {
|
|||
// ==== Public endpoints ====
|
||||
app.get('/api/health', (req, res) => res.json({ ok: true, ts: Date.now() }));
|
||||
|
||||
// Digital Asset Links — verifica TWA do APK Android e remove a barra de URL do Chrome
|
||||
app.get('/.well-known/assetlinks.json', (req, res) => {
|
||||
res.json([{
|
||||
relation: ['delegate_permission/common.handle_all_urls'],
|
||||
target: {
|
||||
namespace: 'android_app',
|
||||
package_name: 'br.com.pontualtech.shivao',
|
||||
sha256_cert_fingerprints: [
|
||||
'CA:BE:35:59:92:BA:3D:69:7C:38:0A:8A:E0:20:DE:2A:78:29:08:1C:93:F4:62:D5:6E:3F:04:E0:F5:26:23:09'
|
||||
]
|
||||
}
|
||||
}]);
|
||||
});
|
||||
|
||||
// PWA manifest (necessário pra "Add to Home Screen" + APK via PWABuilder)
|
||||
app.get('/manifest.json', (req, res) => {
|
||||
res.json({
|
||||
|
|
|
|||
Loading…
Reference in a new issue