favicon
https://github.com/eggjs/egg/blob/master/config/config.default.js#L168
config.siteFile = {
'/favicon.ico': fs.readFileSync(path.join(__dirname, 'favicon.png')),
};
app/view/index.html
<link rel="icon" href="/public/image/favicons/favicon.ico">
<link rel="stylesheet" href="/public/css/bootstrap.css">
<link rel="apple-touch-icon" href="/public/image/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="/public/image/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/public/image/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="/public/image/favicons/manifest.json">
<link rel="mask-icon" href="/public/image/favicons/safari-pinned-tab.svg" color="#7952b3">
<link rel="icon" href="/public/image/favicons/favicon.ico">
body参数
ctx.request.body