试图链接到angularjs应用程序中的特定页面

我正在使用一个API,它要求我传入一个url作为callback的一部分,以便在它对用户进行身份validation之后,知道把它们作为stream的一部分发送到哪里。

我知道,如果这是发生在前端,我会以某种方式使用$ locationfunctionangular度提供,但callbackurl必须在我的node.js服务器在下面的代码中指定。 我已经链接到我的github url只是为了确保它实际上得到执行,但我需要它链接到我的我的localhost:8887 content.html页面。 我知道这将是localhost:8887/content.html如果我不使用AngularJS,但我不知道用Angular做。

 router.post('/add', function(req, res){ var emailAdd = req.body.text; ctxioClient.accounts(ID).connect_tokens().post({callback_url: "https://github.com/ralphie9224", email: emailAdd}, function(err, response){ res.set("Content-Type", "application/json"); res.header("Access-Control-Allow-Origin", "*"); res.send(response.body); console.log("this was the post response: " + response.body); }); });