Refactor getConfig calls

This commit is contained in:
2024-09-02 12:16:06 +02:00
parent e01a4dbd9a
commit b84efd1c61
6 changed files with 9 additions and 11 deletions

View File

@@ -3,9 +3,8 @@ import { URLSearchParams } from "url";
import { getConfig } from "../../app/lib/edgeConfig";
export default async function handler(req, res) {
const domainName = req.headers.host;
const config = await getConfig(domainName);
const { requireLogin, privacy, browse, sendToZulip } = config.features;
const config = await getConfig();
const { sendToZulip } = config.features;
if (req.method === "POST") {
const { stream, topic, message } = req.body;