I have two different applications. App 1 runs in localhost 3000 and App 2 localhost 3020. Here, I am trying to merge these applications using Angular JS.
App 1 web address is https://localhost:3000/jump
app.factory('actionFactory', function ($http) {
return {
climbRecords: function (){
////...some codes
return $http.post('https://localhost:3020/climb/climbRecords', data, {
headers: { 'Content-Type': undefined}
)
}
},
getClimbRecords: function (){
return $http.get('https://localhost:3020/getClimbRecords');
}
}
App 2 web address is https://localhost:3020/climb
Can you help me on how to write the url for $http.post and $http.get? Does the url needs to be https as well? Does the url needs to be address of the website?