人力资源
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
601 B

'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,
};
};
2 years ago
const getDomain = async function (ctx) {
const { domain } = opts;
ctx.status = 200;
ctx.body = { root: domain };
};
router.get('/_service/weekly', getWeeklyService);
2 years ago
router.get('/domain', getDomain);
}
};