updated urls ard ports

This commit is contained in:
Solomon Laing 2020-02-02 21:56:04 +10:30
parent 5f757f758a
commit 9aa42fc1f1
3 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ daddy.controller("galleryCtrlr", function($scope, $http, $timeout, stateData){
formData.append('_id', piccy._id) formData.append('_id', piccy._id)
$http({ $http({
url : 'http://127.0.0.1:7001/gallery/comment', url : server + '/gallery/comment',
method : 'POST', method : 'POST',
data : formData, data : formData,
headers : {'Content-Type' : undefined}, headers : {'Content-Type' : undefined},
@ -113,7 +113,7 @@ daddy.controller("uploadCtrlr", function($scope, $http){
formData.append('Image', $scope.files[0]) formData.append('Image', $scope.files[0])
$http({ $http({
url : 'http://127.0.0.1:7001/gallery/add', url : server + '/gallery/add',
method : 'POST', method : 'POST',
data : formData, data : formData,
headers : {'Content-Type' : undefined}, headers : {'Content-Type' : undefined},

View File

@ -1,6 +1,6 @@
let daddy = angular.module("daddy", ["ngRoute", "ngAnimate"]) let daddy = angular.module("daddy", ["ngRoute", "ngAnimate"])
let server = "http://127.0.0.1:7001" let server = "https://www.inkletblot.com:7001"
daddy.controller("bodyCtrlr", function($scope, stateData){ daddy.controller("bodyCtrlr", function($scope, stateData){

View File

@ -5,7 +5,7 @@ let app = express()
app.use(express.static('./')) app.use(express.static('./'))
app.use(cors({ app.use(cors({
origin: "http://localhost:7001" origin: "https://www.inkletblot.com:7001"
})) }))
app.get('/', (req, res) => { app.get('/', (req, res) => {