✨ add private and public endpoint

This commit is contained in:
Flam3rboy
2021-09-25 23:55:19 +02:00
parent 1c49d82400
commit 4b2e93c84b
6 changed files with 27 additions and 67 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ router.post(
if (ANIMATED_MIME_TYPES.includes(type.mime)) hash = `a_${hash}`; // animated icons have a_ infront of the hash
const path = `avatars/${user_id}/${hash}`;
const endpoint = Config.get().cdn.endpoint || "http://localhost:3003";
const endpoint =
Config.get().cdn.endpointPublic || "http://localhost:3003";
await storage.set(path, buffer);