'use strict'; // const request = require('superagent'); module.exports = { entry: function (app, router, opts) { const getWeeklyService = async function (ctx) { const { service } = opts; ctx.status = 200; ctx.body = { url: service.weekly, }; }; const getDomain = async function (ctx) { const { domain } = opts; ctx.status = 200; ctx.body = { root: domain }; }; router.get('/_service/weekly', getWeeklyService); router.get('/domain', getDomain); } };