'use strict'; module.exports = { entry: function (app, router, opts) { const getServiceUrl = async function (ctx) { const { service } = opts; ctx.status = 200; ctx.body = { url: service.url, }; }; router.get('/_service/url', getServiceUrl); } };