ランダムにアバターを生成するように

This commit is contained in:
syuilo 2019-04-15 20:37:21 +09:00
parent d2d991ff34
commit 18bc4a49e8
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 101 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -21,12 +21,6 @@ app.use(async (ctx, next) => {
// Init router
const router = new Router();
router.get('/default-avatar.jpg', ctx => {
const file = fs.createReadStream(`${__dirname}/assets/avatar.jpg`);
ctx.set('Content-Type', 'image/jpeg');
ctx.body = file;
});
router.get('/app-default.jpg', ctx => {
const file = fs.createReadStream(`${__dirname}/assets/dummy.png`);
ctx.set('Content-Type', 'image/jpeg');