summary refs log tree commit diff
path: root/src/cdn/Server.ts
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2022-08-29 11:11:40 -0400
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-19 20:37:59 +1100
commitb84aa73852ae1267c9e193cfa6ee365c69d16803 (patch)
tree645ee5855738495476bfc9c003782ffb7c96d081 /src/cdn/Server.ts
parentConfigurable MFA backup token length (diff)
downloadserver-b84aa73852ae1267c9e193cfa6ee365c69d16803.tar.xz
implement guild profiles and fix user profiles
Diffstat (limited to 'src/cdn/Server.ts')
-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 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(); }