/**
 * 唤起苹果 app 配置文件
 */

'use strict';
let configFile = `
{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "6U82P566A4.com.yoho.buy",
                "paths": [ "*"]
            },
	    {
                "appID": "EX33S4LRW7.com.yoho.buy",
                "paths": [ "*" ]
	    },
	    {
                "appID": "FP8T8KM2NE.com.yoho.buy.c3",
                "paths": [ "*" ]
	    }
        ]
    }
}
`;

const appSiteAssociation = (req, res) => {
    res.set('Content-Disposition', 'attachment; filename="apple-app-site-association"');
    res.send(configFile);
};

module.exports = {
    appSiteAssociation
};