ランダムにアバターを生成するように
This commit is contained in:
parent
d2d991ff34
commit
18bc4a49e8
6 changed files with 101 additions and 7 deletions
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB |
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue