🔧 Removed one more localhost reference
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
import router from "../router";
|
import router from "../router";
|
||||||
import { Request, Response } from "express";
|
import { Request, Response } from "express";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import { IMPORT_SERVICE_BASE_URI } from "../../../client/constants/endpoints";
|
||||||
|
|
||||||
router.route("/getComicCovers").post(async (req: Request, res: Response) => {
|
router.route("/getComicCovers").post(async (req: Request, res: Response) => {
|
||||||
typeof req.body === "object" ? req.body : {};
|
typeof req.body === "object" ? req.body : {};
|
||||||
await axios.request({
|
await axios.request({
|
||||||
url: "http://localhost:3000/api/import/processAndImportToDB",
|
url: `${IMPORT_SERVICE_BASE_URI}/processAndImportToDB`,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
extractionOptions: req.body.extractionOptions,
|
extractionOptions: req.body.extractionOptions,
|
||||||
|
|||||||
Reference in New Issue
Block a user