添加delete, query的api, 修复上传中文名文件乱码的问题
This commit is contained in:
1 parent
737ee87bae
commit
64259e37f4
10 files changed
+323
-14
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { api } from "../config.js";
|
||||
import useFsOprateEventCenter from "../hooks/useFsOprateEventCenter.js";
|
||||
|
||||
const fsOprateEventCenter = useFsOprateEventCenter();
|
||||
|
||||
export default function useQueryApi(app) {
|
||||
app.get(api.query, (req, res) => {
|
||||
const id = req.query.id;
|
||||
res.json(fsOprateEventCenter.query(id));
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user