apple.js
577 Bytes
/**
* 唤起苹果 app 配置文件
*/
'use strict';
let configFile = `
{
"applinks": {
"apps": [],
"details": [
{
"appID": "6U82P566A4.com.yoho.buy",
"paths": [ "*"]
},
{
"appID": "EX33S4LRW7.com.yoho.buy",
"paths": [ "*" ]
}
]
}
}
`;
const appSiteAssociation = (req, res) => {
res.set('Content-Disposition', 'attachment; filename="apple-app-site-association"');
res.send(configFile);
};
module.exports = {
appSiteAssociation
};