warrior 10 ore fa
parent
commit
bc1a372e9e
1 ha cambiato i file con 38 aggiunte e 3 eliminazioni
  1. 38 3
      api/routes.ts

+ 38 - 3
api/routes.ts

@@ -46,7 +46,7 @@ try {
 }
 
 router.use('/sorftime', createSorftimeRouter({
-  token: 'BasicAuth dllfb0npquu1rgqwcw9yb0uynndwzz09',
+  token: 'BasicAuth nlbuzstvrkwyadzyee5kwfrtqkc4zz09',
 }));
 
 let createTikHubRoutes;
@@ -59,7 +59,6 @@ try {
   // ({ createTikHubRoutes } = await import('../modules/fmode-tikhub-api/src/mod.ts'));
 }
 
-
 router.use(
   '/tikhub',
   createTikHubRoutes({
@@ -67,6 +66,40 @@ router.use(
     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;
+// try {
+//   ({ createPinterestRouter } = await globalThis.loadModule(
+//     'https://repos.fmode.cn/x/fmode-brightdata-api/0.0.1/fmode-brightdata-api.min.js?code=xxxxxxx'
+//   ));
+// } catch (e) {
+//   console.warn("[API Routes] CDN 加载失败, 使用本地模块回退", e);
+//   // ({ createPinterestRouter } = await import('../modules/fmode-brightdata-server/src/mod.ts'));
+// }
+
+// router.use('/pinterest', createPinterestRouter());
+
 router.get('/', (req, res) => {
   res.json({
     message: 'API Routes Loaded Successfully',
@@ -78,7 +111,9 @@ router.get('/', (req, res) => {
       '/api/sorftime',
       '/api/sorftime/test',
       '/api/tikhub',
-      '/api/tikhub/health'
+      '/api/tikhub/health',
+      // '/api/pinterest',
+      // '/api/pinterest/search'
     ]
   });
 });