remove unused WeCom backend integration
This commit is contained in:
@@ -15,7 +15,6 @@ import {
|
||||
miniProgramProfileUpdateSchema,
|
||||
} from "../schemas.js";
|
||||
import { exchangeWechatLoginCode, exchangeWechatPhoneCode, getWechatAppId } from "../wechat.js";
|
||||
import { getWecomContactWayConfigDefaults, WECOM_CONTACT_PLUGIN_ID, WECOM_CONTACT_PLUGIN_VERSION } from "../wecom.js";
|
||||
|
||||
const productQuerySchema = z.object({
|
||||
keyword: z.string().optional(),
|
||||
@@ -365,21 +364,6 @@ export async function registerPublicRoutes(app: FastifyInstance) {
|
||||
|
||||
app.get("/health", async () => ({ ok: true, service: "miniapp-api", mode: "postgres", persistent: true }));
|
||||
|
||||
app.get("/api/public/wecom/contact-way", async () => {
|
||||
const config = getWecomContactWayConfigDefaults();
|
||||
return {
|
||||
enabled: config.enabled,
|
||||
configId: config.configId,
|
||||
type: config.type,
|
||||
scene: config.scene,
|
||||
style: config.style,
|
||||
remark: config.remark,
|
||||
state: config.state,
|
||||
pluginId: WECOM_CONTACT_PLUGIN_ID,
|
||||
pluginVersion: WECOM_CONTACT_PLUGIN_VERSION,
|
||||
};
|
||||
});
|
||||
|
||||
app.get("/api/public/site-config", async () => {
|
||||
const [homeModules, heroSlides, destinations, themes, ctaBanners, campaigns, destinationPageConfig, searchPageConfig] = await Promise.all([
|
||||
listHomeModules(true),
|
||||
|
||||
Reference in New Issue
Block a user