✂️ Pruning useless code

This commit is contained in:
2021-06-14 10:47:12 -07:00
parent 7ea962952a
commit 22a5a84762
5 changed files with 1744 additions and 21228 deletions

View File

@@ -2,20 +2,4 @@ import router from "../router";
import { Request, Response } from "express";
import axios from "axios";
router.route("/walkFolder").post(async (req: Request, res: Response) => {
const basePathToWalk =
typeof req.body.basePathToWalk === "string" ? req.body.basePathToWalk : "";
const walkedFolders = await axios
.request({
url: "http://localhost:3000/api/import/walkFolders",
method: "POST",
data: {
basePathToWalk,
},
})
.then((data) => data.data)
.catch((error) => error);
return res.json(walkedFolders);
});
export default router;