Move Lemmy federation context to join-lemmy.org

Ref https://github.com/LemmyNet/lemmy/issues/4234
This commit is contained in:
Felix Ableitner 2023-12-19 12:35:11 +01:00
parent 24e1b3e06e
commit a77788668b

View file

@ -17,6 +17,10 @@ server.use(express.urlencoded({ extended: false }) as RequestHandler);
server.use("/static", express.static(path.resolve("./dist"))); server.use("/static", express.static(path.resolve("./dist")));
server.use("/docs", express.static(path.resolve("./dist/assets/docs"))); server.use("/docs", express.static(path.resolve("./dist/assets/docs")));
server.use("/api", express.static(path.resolve("./dist/assets/api"))); server.use("/api", express.static(path.resolve("./dist/assets/api")));
server.use(
"/context.json",
express.static(path.resolve("./dist/assets/lemmy_federation_context.json")),
);
server.use("/feed.xml", express.static(path.resolve("./dist/feed.xml"))); server.use("/feed.xml", express.static(path.resolve("./dist/feed.xml")));
function erudaInit(): string { function erudaInit(): string {