import config from '../config';

export async function main(req, res) {
  res.json({
    status: 'online',
    user: config.user,
    repo: config.repo
  });
}

import {getLatestRelease} from '../components/github';
import config from '../config';

export async function main(req, res) {
  const latestRelease = await getLatestRelease();
  res.json({
    status: 'online',
    user: config.user,
    repo: config.repo,
    latestRelease
  });
}

Print latest-release info in /
Print latest-release info in /
