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

This commit is contained in:
syuilo
2019-04-15 20:37:21 +09:00
parent d2d991ff34
commit 18bc4a49e8
6 changed files with 101 additions and 7 deletions

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');