diff options
author | Puyodead1 <puyodead@protonmail.com> | 2022-08-29 11:11:40 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@protonmail.com> | 2022-08-29 11:11:40 -0400 |
commit | c2aba2910cb50211a91a057863ef0bd0497ceead (patch) | |
tree | 8fa7c143dd0f397ede278f688dc3d86c5195815e /src/cdn/Server.ts | |
parent | Oop, deprecated typeorm call (diff) | |
download | server-c2aba2910cb50211a91a057863ef0bd0497ceead.tar.xz |
implement guild profiles and fix user profiles
Diffstat (limited to 'src/cdn/Server.ts')
-rw-r--r-- | src/cdn/Server.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cdn/Server.ts b/src/cdn/Server.ts index ec5edc68..9cedaa02 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts @@ -3,6 +3,7 @@ import bodyParser from "body-parser"; import { Server, ServerOptions } from "lambert-server"; import path from "path"; import avatarsRoute from "./routes/avatars"; +import guildProfilesRoute from "./routes/guild-profiles"; import iconsRoute from "./routes/role-icons"; export interface CDNServerOptions extends ServerOptions {} @@ -65,6 +66,12 @@ export class CDNServer extends Server { this.app.use("/channel-icons/", avatarsRoute); this.log("verbose", "[Server] Route /channel-icons registered"); + this.app.use("/guilds/:guild_id/users/:user_id/avatars", guildProfilesRoute); + this.log("verbose", "[Server] Route /guilds/avatars registered"); + + this.app.use("/guilds/:guild_id/users/:user_id/banners", guildProfilesRoute); + this.log("verbose", "[Server] Route /guilds/banners registered"); + return super.start(); } |