javascript - Trying to link to specific page within angularjs app -
i'm using api requires me pass in url part of callback after authenticates user, knows send them part of flow.
i know if happening on front-end somehow use $location feature angular provides, callback url must specified on node.js server in code below. have linking github url make sure getting executed, need link content.html
page on localhost:8887
. know it'd localhost:8887/content.html
if weren't using angularjs , don't know using 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 post response: " + response.body); }); });
Comments
Post a Comment