// Copyright (c) 2020,2021, StepZen, Inc.

const details = async (req, res) => {
  const { account, domain, workspace } = req;

  const endpoint = `https://${account}.${domain}/${workspace.endpoint}/__graphql`;

  res.json({
    endpoint,
  });
};

module.exports = details;
