forked from UKSOURCE/cms.hailearning.edu.vn
fix: floating contact button cms
This commit is contained in:
@@ -287,7 +287,7 @@ exports.index = async (req, res) => {
|
|||||||
data.floatingContact = normalizeFloatingContactData(data.floatingContact);
|
data.floatingContact = normalizeFloatingContactData(data.floatingContact);
|
||||||
|
|
||||||
const frontendUrl = process.env.FRONTEND_URL || "http://localhost:3000";
|
const frontendUrl = process.env.FRONTEND_URL || "http://localhost:3000";
|
||||||
const backendUrl = `${req.protocol}://${req.get("host")}`;
|
const backendUrl = process.env.BACKEND_URL || `${req.protocol}://${req.get("host")}`;
|
||||||
|
|
||||||
// Lấy tất cả blog để chọn trong CMS
|
// Lấy tất cả blog để chọn trong CMS
|
||||||
const allBlogs = await Blog.find({ status: "published" })
|
const allBlogs = await Blog.find({ status: "published" })
|
||||||
|
|||||||
Reference in New Issue
Block a user