frontend/src/api/spider.js
timerzz e89dbd6fa5
All checks were successful
Build image / build (push) Successful in 26s
feat 支持修改爬取配置
2024-05-23 21:18:01 +08:00

7 lines
180 B
JavaScript

import {mande} from "mande";
const spider = mande('/api/v1/spider')
export const GetSpiderCfg = ()=> spider.get("cfg")
export const SetSpiderCfg = (cfg)=> spider.post("cfg",cfg)