summary refs log tree commit diff
path: root/src/cdn/Server.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-31 21:57:36 +0200
committerGitHub <noreply@github.com>2022-08-31 21:57:36 +0200
commit932348cb8813c98c30e44c2ea34459ed5a65490a (patch)
treecb581f1795758530a6826dbcfe46d30a18ce5e52 /src/cdn/Server.ts
parentMerge pull request #866 from FSG-Cat/Bug-Report-Template (diff)
parentMerge branch 'staging' into feat/guild-profiles (diff)
downloadserver-932348cb8813c98c30e44c2ea34459ed5a65490a.tar.xz
Merge pull request #872 from Puyodead1/feat/guild-profiles
implement guild profiles and fix user profiles
Diffstat (limited to '')
-rw-r--r--src/cdn/Server.ts7
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(); }