From 3b0e041addbd01fc9c6388795fd624f723531669 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Sun, 17 Apr 2022 13:38:41 -0700 Subject: [PATCH] fix: url error in TravelPolicy method --- controller/ncov.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/ncov.js b/controller/ncov.js index 1472507..1905a7f 100644 --- a/controller/ncov.js +++ b/controller/ncov.js @@ -120,7 +120,7 @@ export const TravelDataCity = async (req, res) => { // Get Travel Prevention Policies export const TravelPolicy = async (req, res) => { const { juhe } = process.env; - const travelPreventionUrl = `https://http://apis.juhe.cn/springTravel/query?key=${juhe}&from=10191&to=10349` + const travelPreventionUrl = `https://apis.juhe.cn/springTravel/query?key=${juhe}&from=10191&to=10349` try { axios.get(travelPreventionUrl).then((result) => { const { data } = result;