diff options
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 45d3abd9..1fd9ca38 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts @@ -2,6 +2,7 @@ import { Server, ServerOptions } from "lambert-server"; import { Config, initDatabase, registerRoutes } from "@fosscord/util"; import path from "path"; import avatarsRoute from "./routes/avatars"; +import guildProfilesRoute from "./routes/guild-profiles"; import iconsRoute from "./routes/role-icons"; import bodyParser from "body-parser"; @@ -74,6 +75,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(); } |