You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
|
|
const multer = require('@koa/multer');
|
|
//
|
|
const upload = multer({
|
|
limits: { fileSize: 500 * 1024 * 1024 } // 将文件大小限制设置为200MB
|
|
});
|
|
//
|
|
const xunruan = require('./controllers/xunruan.js');
|
|
const umt6E1uQDV = require('./controllers/umt6E1uQDV.js');
|
|
const imageProxy = require('./controllers/imageProxy.js');
|
|
const bbs52Proxy = require('./controllers/bbs52Proxy.js');
|
|
|
|
// ... 路由都写在这里
|
|
module.exports = async (app, router, conf) => {
|
|
router.post('/xunruan/decryption',
|
|
upload.single('file'),
|
|
xunruan.decryption,
|
|
{ content: '讯软解密', visible: true }
|
|
);
|
|
router.get('/umt6E1uQDV.txt', // 轨道交通小程序校验文件
|
|
umt6E1uQDV.index,
|
|
{ content: '校验文件', visible: false }
|
|
);
|
|
router.get('/proxy/fastgpt-image',
|
|
imageProxy.fastgptImage,
|
|
{ content: 'fastgpt 图片代理', visible: false }
|
|
);
|
|
router.get('/_bbs52/(.*)', // 52监测网代理 + UI 清理
|
|
bbs52Proxy.bbs52Proxy,
|
|
{ content: '论坛代理', visible: false }
|
|
);
|
|
}
|
|
|