forked from UKSOURCE/cms.hailearning.edu.vn
Merge pull request 'fix: floating contact button cms' (#48) from fix/dat-12042026-fix-floating-contact-button-cms into develop
Reviewed-on: UKSOURCE/cms.hailearning.edu.vn#48
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