const controller = {};
module.exports = controller;

controller.healthCheck = async ctx => {
  ctx.body = 'ok';
  ctx.status = 200;
};

controller.appleAppSiteAssociation = async ctx => {
  ctx.status = 200;
  ctx.body = {
    applinks: {
      details: [
        {
          appID: 'CL3K9D5FDN.com.lawsnote.college.staging',
          paths: ['*'],
        },
        {
          appID: 'CL3K9D5FDN.com.lawsnote.college',
          paths: ['*'],
        },
      ],
    },
    webcredentials: {
      apps: ['CL3K9D5FDN.com.lawsnote.college.staging', 'CL3K9D5FDN.com.lawsnote.college'],
    },
  };
};
