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

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

export default router;