简体   繁体   English

如何在express js中重定向

[英]How to redirect in express js

Please help me with some solutions.请帮我解决一些问题。

in simple, I made this API ( https://lampmeet.herokuapp.com/api/v1 ) username: test token: test and If the Date.简单来说,我制作了这个 API ( https://lampmeet.herokuapp.com/api/v1 ) username: test token: test 和 If the Date. now is greater than the meeting time then open the meet URL in the new tab.现在大于会议时间,然后在新选项卡中打开会议 URL。 and it should need to check every second.它应该需要每秒检查一次。

as stated in https://www.npmjs.com/package/openhttps://www.npmjs.com/package/open 所述

This is meant to be used in command-line tools and scripts, not in the browser.这意味着在命令行工具和脚本中使用,而不是在浏览器中使用。

if you try to run it on a remote server it won't open a link in your current browser, it will try to open it on the server itself.如果您尝试在远程服务器上运行它,它不会在您当前的浏览器中打开链接,而是会尝试在服务器本身上打开它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM