Skip to content

Commit

Permalink
Path update to realtive
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciZ committed Jul 16, 2015
1 parent a7d5f0d commit 5cb9d28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/script/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var app = {
getProducts: function(){
// update create
// get, put, post, delete
$.get('http://localhost:3000/products',
$.get('/products',
function(productsResponse){

console.log(productsResponse);
Expand All @@ -35,7 +35,7 @@ var app = {
console.log(nameValue);
console.log(priceValue);

$.post('http://localhost:3000/products',
$.post('/products',
{
name : nameValue,
price : priceValue
Expand All @@ -55,7 +55,7 @@ var app = {
var id = $(this).attr('id');

$.ajax({
url:'http://localhost:3000/products/'+id,
url:'/products/'+id,
method:'DELETE',
success:function(resDoc){

Expand Down

0 comments on commit 5cb9d28

Please sign in to comment.