warrior 10 hours ago
parent
commit
daa8ed6e6d
1 changed files with 17 additions and 17 deletions
  1. 17 17
      api/routes.ts

+ 17 - 17
api/routes.ts

@@ -69,23 +69,23 @@ router.use(
 
 
 
 
 /* 已清洗的社媒接口 */
 /* 已清洗的社媒接口 */
-let createTikHubCustomizeRoutes;
-try {
-  ({ createTikHubCustomizeRoutes } = await globalThis.loadModule(
-    'https://repos.fmode.cn/x/fmode-tikhub-api-customize/0.0.3/fmode-tikhub-api-customize.min.js?code=xxxxxxx'
-  ));
-} catch (e) {
-  console.warn("[API Routes] CDN 加载失败, 使用本地模块回退", e);
-  // ({ createTikHubCustomizeRoutes } = await import('../modules/fmode-tikhub-server/src/mod.ts'));
-}
-
-router.use(
-  '/tikhub/customize',
-  createTikHubCustomizeRoutes({
-    serverURL: 'https://api.tikhub.io/api/v1',
-    apiKey: 'tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw=='
-  })
-);
+// let createTikHubCustomizeRoutes;
+// try {
+//   ({ createTikHubCustomizeRoutes } = await globalThis.loadModule(
+//     'https://repos.fmode.cn/x/fmode-tikhub-api-customize/0.0.3/fmode-tikhub-api-customize.min.js?code=xxxxxxx'
+//   ));
+// } catch (e) {
+//   console.warn("[API Routes] CDN 加载失败, 使用本地模块回退", e);
+//   // ({ createTikHubCustomizeRoutes } = await import('../modules/fmode-tikhub-server/src/mod.ts'));
+// }
+
+// router.use(
+//   '/tikhub/customize',
+//   createTikHubCustomizeRoutes({
+//     serverURL: 'https://api.tikhub.io/api/v1',
+//     apiKey: 'tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw=='
+//   })
+// );
 
 
 
 
 let createPinterestRouter;
 let createPinterestRouter;