generated from lucien/api-template
add: added some ui improvements
This commit is contained in:
parent
8d6e1f8618
commit
b707e2cead
21 changed files with 236 additions and 121 deletions
|
@ -81,7 +81,7 @@ router.get('/:username/pfp', async (req, res) => {
|
|||
const pfp = user[0].pfp;
|
||||
|
||||
if (!pfp || !fs.existsSync(path.join(__dirname, `../data/pfps/${pfp}`))) {
|
||||
return res.sendFile(path.join(__dirname, `../images/default-pfp.png`), { headers: { 'Content-Type': 'image' } });
|
||||
return res.sendFile(path.join(__dirname, `../images/default.png`), { headers: { 'Content-Type': 'image' } });
|
||||
}
|
||||
|
||||
res.sendFile(path.join(__dirname, `../data/pfps/${pfp}`), { headers: { 'Content-Type': 'image' } });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue