🔧 Removed one more localhost reference

This commit is contained in:
2021-10-20 23:28:42 -07:00
parent 8881576296
commit 31a72e4b6f

View File

@@ -1,11 +1,12 @@
import router from "../router";
import { Request, Response } from "express";
import axios from "axios";
import { IMPORT_SERVICE_BASE_URI } from "../../../client/constants/endpoints";
router.route("/getComicCovers").post(async (req: Request, res: Response) => {
typeof req.body === "object" ? req.body : {};
await axios.request({
url: "http://localhost:3000/api/import/processAndImportToDB",
url: `${IMPORT_SERVICE_BASE_URI}/processAndImportToDB`,
method: "POST",
data: {
extractionOptions: req.body.extractionOptions,