Sorry if this is a super basic question, I'm still trying to figure out how a lot of this works.
I'm building an app for jira software cloud with ACE. I'm trying to make just a standard request to the server using AP.request() but since it's going through ngrok right now, the url keeps changing. Is there a way I can automaticlaly get the url of the app's express server? If there is some other better way to send requests to the server, that would be nice too, I'm open to suggestions.
This is what i'm trying right now if this helps:
const res = await AP.request({
url: baseUrl,
type: 'GET'
});
console.log(res);
app.get('/test-route', addon.authenticate(), (req, res) => {
res.send({"data": "hi"});
});
Thanks
Not sure what you want to do, but from inside your connect-app-page you can use:
...to get either the url to the jira-cloud site or the domain to your hosted connect-app.
Then you should be able to create the urls you need.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.