summary refs log tree commit diff
path: root/api/src/routes/policies/instance/domains.ts
blob: b68763ccc2022e4ed6fe3599238665989d9b4b15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Router, Request, Response } from "express";
import { route } from "@fosscord/api";
import { Config } from "@fosscord/util";
import { config } from "dotenv"
const router = Router();
const { cdn } = Config.get();

const IdentityForm = {
    cdn: cdn.endpointPublic || process.env.CDN || "http://localhost:3001",
}

router.get("/",route({}), async (req: Request, res: Response) => {
	res.json(IdentityForm)
});

export default router;