summary refs log tree commit diff
path: root/cdn/src/Server.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-01-24 10:22:46 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-01-24 10:22:46 +1100
commitba79fe858ce487de6138893be6834309085bedbb (patch)
treed7d03791adebf2c44f2b941fe70d12aa7ba4e226 /cdn/src/Server.ts
parentAdded `typescript-cached-transpile` package to help improve performance (diff)
parent* Replaced list of invisible characters with unicode codepoints (diff)
downloadserver-ba79fe858ce487de6138893be6834309085bedbb.tar.xz
Merge branch 'master' into tsnode
Diffstat (limited to 'cdn/src/Server.ts')
-rw-r--r--cdn/src/Server.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cdn/src/Server.ts b/cdn/src/Server.ts

index cac34a80..b8d71fa9 100644 --- a/cdn/src/Server.ts +++ b/cdn/src/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 iconsRoute from "./routes/role-icons"; import bodyParser from "body-parser"; export interface CDNServerOptions extends ServerOptions {} @@ -40,6 +41,9 @@ export class CDNServer extends Server { this.app.use("/icons/", avatarsRoute); this.log("verbose", "[Server] Route /icons registered"); + this.app.use("/role-icons/", iconsRoute); + this.log("verbose", "[Server] Route /role-icons registered"); + this.app.use("/emojis/", avatarsRoute); this.log("verbose", "[Server] Route /emojis registered");