无源标靶上位机
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.
 
 
 
 
 

31 lines
903 B

const multer = require('@koa/multer');
const { setupTcpProxy } = require('./tcpProxy');
const locationConfig = require('./controllers/locationConfig.js');
const upload = multer({
limits: { fileSize: 500 * 1024 * 1024 } // 将文件大小限制设置为200MB
});
//
const xunruan = require('./controllers/xunruan.js');
// ... 路由都写在这里
module.exports = async (app, router, conf) => {
// 讯软相关接口
router.post('/xunruan/decryption',
upload.single('file'),
xunruan.decryption,
{ content: '讯软解密', visible: true }
);
router.get('/location-config',
locationConfig.getLocationConfig,
{ content: '读取经纬度配置', visible: false }
);
router.post('/location-config',
locationConfig.saveLocationConfig,
{ content: '保存经纬度配置', visible: false }
);
// 设置TCP代理
setupTcpProxy(conf);
}