while the code is able to request successfully an app.get ("/")however, when I tried to request an app.get("/tasks"), it fails and instead returns a 502:Bad Gateway. I've checked the yarn logs and there is no error showing. below are my code artifacts and live code. live code: sandbox
it returns a 502: Bad Gateway
Try this:
consign({ cwd: "src" })
.include("./models")
.then("./libs")
.then("./routes")
.into(app);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.