mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
从syzoj系统导入题目
This commit is contained in:
1 parent
97b0d782b9
commit
ce3d11b999
12 files changed
+179
-34
No files matched your search
@@ -0,0 +1,23 @@
|
||||
const axios = require('axios');
|
||||
|
||||
async function get(url, options) {
|
||||
let res;
|
||||
try {
|
||||
res = await axios.get(url, options);
|
||||
} catch (e) {
|
||||
res = e;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
async function post(url, data, options) {
|
||||
let res;
|
||||
try {
|
||||
res = await axios.post(url, data, options);
|
||||
} catch (e) {
|
||||
res = e;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
module.exports = { get, post };
|
||||
Reference in new issue
Block a user