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

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

export default router;