mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-10 20:36:23 -05:00
/v1/user now uses CDN from config
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const router = require('express').Router();
|
||||
const { PNID } = require('../../../../models/pnid');
|
||||
const config = require('../../../../config.json');
|
||||
|
||||
/**
|
||||
* [GET]
|
||||
@@ -36,7 +37,7 @@ router.get('/', async (request, response) => {
|
||||
mii: {
|
||||
data: pnid.get('mii.data'),
|
||||
name: pnid.get('mii.name'),
|
||||
image_url: `https://pretendo-cdn.b-cdn.net/mii/${pnid.get('pid')}/normal_face.png`
|
||||
image_url: `${config.cdn_base}/mii/${pnid.get('pid')}/normal_face.png`
|
||||
},
|
||||
flags: {
|
||||
marketing: pnid.get('flags.marketing')
|
||||
|
||||
Reference in New Issue
Block a user