base_url
This commit is contained in:
parent
34c92804f8
commit
b84b8a3331
|
|
@ -5,7 +5,7 @@ APP_DEBUG=true
|
|||
APP_URL=http://localhost
|
||||
APP_LOCALE=en
|
||||
|
||||
BAGISTO_URL=http://216.250.11.229/app/api/
|
||||
BAGISTO_URL=http://216.250.11.229/derman/app/api/
|
||||
|
||||
ACTIVE_THEME=demo
|
||||
BACKEND_URI=/admin
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class Seller extends ComponentBase
|
|||
$dataInput = post();
|
||||
|
||||
|
||||
$response = Http::post('http://216.250.11.229/app/api/seller/create/product', function ($http) use($dataInput) {
|
||||
$response = Http::post('http://216.250.11.229/derman/app/api/seller/create/product', function ($http) use($dataInput) {
|
||||
// $http->header('Content-Type', 'application/json');
|
||||
$http->header('Accept', 'application/json');
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ class Seller extends ComponentBase
|
|||
$dataInput = post();
|
||||
// dd($dataInput["status"]);
|
||||
|
||||
$response = Http::post('http://216.250.11.229/app/api/seller/update/product', function ($http) use($dataInput) {
|
||||
$response = Http::post('http://216.250.11.229/derman/app/api/seller/update/product', function ($http) use($dataInput) {
|
||||
// $http->header('Content-Type', 'application/json');
|
||||
$http->header('Accept', 'application/json');
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class Session extends ComponentBase
|
|||
$dataInput = post();
|
||||
|
||||
|
||||
$response = Http::post('http://216.250.11.229/app/api/customer/cart/add/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) {
|
||||
$response = Http::post('http://216.250.11.229/derman/app/api/customer/cart/add/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) {
|
||||
// $http->header('Content-Type', 'application/json');
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
$http->header('Accept', 'application/json');
|
||||
|
|
@ -90,7 +90,7 @@ class Session extends ComponentBase
|
|||
{
|
||||
$getToken = SessionP::get('nurgulToken');
|
||||
|
||||
$response = Http::get('http://216.250.11.229/app/api/customer/cart', function ($http) use($getToken) {
|
||||
$response = Http::get('http://216.250.11.229/derman/app/api/customer/cart', function ($http) use($getToken) {
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
});
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ class Session extends ComponentBase
|
|||
$getToken = SessionP::get('nurgulToken');
|
||||
$dataInput = post();
|
||||
|
||||
$response = Http::delete('http://216.250.11.229/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) {
|
||||
$response = Http::delete('http://216.250.11.229/derman/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) {
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
});
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ class Session extends ComponentBase
|
|||
$getToken = SessionP::get('nurgulToken');
|
||||
$dataInput = post();
|
||||
|
||||
$response = Http::delete('http://216.250.11.229/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) {
|
||||
$response = Http::delete('http://216.250.11.229/derman/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) {
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
});
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ class Session extends ComponentBase
|
|||
{
|
||||
$getToken = SessionP::get('nurgulToken');
|
||||
|
||||
$response = Http::get('http://216.250.11.229/app/api/customer/addresses', function ($http) use($getToken) {
|
||||
$response = Http::get('http://216.250.11.229/derman/app/api/customer/addresses', function ($http) use($getToken) {
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
});
|
||||
|
||||
|
|
@ -151,7 +151,7 @@ class Session extends ComponentBase
|
|||
$dataInput = post();
|
||||
|
||||
|
||||
$response = Http::post('http://216.250.11.229/app/api/customer/addresses', function ($http) use($getToken, $dataInput) {
|
||||
$response = Http::post('http://216.250.11.229/derman/app/api/customer/addresses', function ($http) use($getToken, $dataInput) {
|
||||
// $http->header('Content-Type', 'application/json');
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
$http->header('Accept', 'application/json');
|
||||
|
|
@ -184,7 +184,7 @@ class Session extends ComponentBase
|
|||
$dataInput = post();
|
||||
|
||||
|
||||
$response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-shipping', function ($http) use($getToken, $dataInput) {
|
||||
$response = Http::post('http://216.250.11.229/derman/app/api/customer/checkout/save-shipping', function ($http) use($getToken, $dataInput) {
|
||||
// $http->header('Content-Type', 'application/json');
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
$http->header('Accept', 'application/json');
|
||||
|
|
@ -211,7 +211,7 @@ class Session extends ComponentBase
|
|||
$dataInput = post();
|
||||
|
||||
|
||||
$response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-payment', function ($http) use($getToken, $dataInput) {
|
||||
$response = Http::post('http://216.250.11.229/derman/app/api/customer/checkout/save-payment', function ($http) use($getToken, $dataInput) {
|
||||
// $http->header('Content-Type', 'application/json');
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
$http->header('Accept', 'application/json');
|
||||
|
|
@ -235,7 +235,7 @@ class Session extends ComponentBase
|
|||
$getToken = SessionP::get('nurgulToken');
|
||||
|
||||
|
||||
$response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-order', function ($http) use($getToken) {
|
||||
$response = Http::post('http://216.250.11.229/derman/app/api/customer/checkout/save-order', function ($http) use($getToken) {
|
||||
// $http->header('Content-Type', 'application/json');
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
$http->header('Accept', 'application/json');
|
||||
|
|
@ -262,7 +262,7 @@ class Session extends ComponentBase
|
|||
$dataInput = post();
|
||||
|
||||
|
||||
$response = Http::post('http://216.250.11.229/app/api/customer/wishlist/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) {
|
||||
$response = Http::post('http://216.250.11.229/derman/app/api/customer/wishlist/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) {
|
||||
// $http->header('Content-Type', 'application/json');
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
$http->header('Accept', 'application/json');
|
||||
|
|
@ -285,7 +285,7 @@ class Session extends ComponentBase
|
|||
{
|
||||
$getToken = SessionP::get('nurgulToken');
|
||||
|
||||
$response = Http::get('http://216.250.11.229/app/api/customer/wishlist', function ($http) use($getToken) {
|
||||
$response = Http::get('http://216.250.11.229/derman/app/api/customer/wishlist', function ($http) use($getToken) {
|
||||
$http->header('Authorization', 'Bearer '.$getToken);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ layout = "main"
|
|||
$('#details_screen').hide();
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/vendors`,
|
||||
url: `http://216.250.11.229/derman/app/api/vendors`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: 'http://216.250.11.229/app/api/customer/cart/add/' + String(prodId),
|
||||
url: 'http://216.250.11.229/derman/app/api/customer/cart/add/' + String(prodId),
|
||||
type: 'POST',
|
||||
headers: { Authorization: 'Bearer {{token}}' },
|
||||
processData: false,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
fd.append('device_name', deviceName);
|
||||
|
||||
$.ajax({
|
||||
url: 'http://216.250.11.229/app/api/customer/login',
|
||||
url: 'http://216.250.11.229/derman/app/api/customer/login',
|
||||
data: fd,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
function getBrandProducts(brandId) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/vendor/products/`+ brandId,
|
||||
url: `http://216.250.11.229/derman/app/api/vendor/products/`+ brandId,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
@ -83,7 +83,7 @@ $('#products_list_{{id}}').append(`{% partial 'product/category-list' url="/prod
|
|||
function getVendor(vendorId) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/vendor/` + vendorId,
|
||||
url: `http://216.250.11.229/derman/app/api/vendor/` + vendorId,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
function getCatProducts(query, limit, catId, page) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page,
|
||||
url: `http://216.250.11.229/derman/app/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
function getCat(query, catId) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/categories/` + catId + `?` + query,
|
||||
url: `http://216.250.11.229/derman/app/api/categories/` + catId + `?` + query,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
console.log(query);
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products?`+query+`{{activeLocale}}&limit=`+limit,
|
||||
url: `http://216.250.11.229/derman/app/api/products?`+query+`{{activeLocale}}&limit=`+limit,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
console.log(query);
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products/{{prodId}}/` + query + `{{activeLocale}}`,
|
||||
url: `http://216.250.11.229/derman/app/api/products/{{prodId}}/` + query + `{{activeLocale}}`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
fd.append('device_name', deviceName);
|
||||
|
||||
$.ajax({
|
||||
url: 'http://216.250.11.229/app/api/customer/register',
|
||||
url: 'http://216.250.11.229/derman/app/api/customer/register',
|
||||
data: fd,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
function getSearchProducts(limit, key, page) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page,
|
||||
url: `http://216.250.11.229/derman/app/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
console.log(query);
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: 'http://216.250.11.229/app/api/products?' + query,
|
||||
url: 'http://216.250.11.229/derman/app/api/products?' + query,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
function deleteProduct(id){
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'http://216.250.11.229/app/api/seller/delete/product/' + id,
|
||||
url: 'http://216.250.11.229/derman/app/api/seller/delete/product/' + id,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/vendor/{{user.seller_id}}?locale=tm`,
|
||||
url: `http://216.250.11.229/derman/app/api/vendor/{{user.seller_id}}?locale=tm`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
success: async function (data, textStatus, xhr) {
|
||||
|
|
@ -173,8 +173,8 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`,
|
||||
// url: `http://216.250.11.229/app/api/products/{{id}}`,
|
||||
url: `http://216.250.11.229/derman/app/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`,
|
||||
// url: `http://216.250.11.229/derman/app/api/products/{{id}}`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
@ -314,7 +314,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "http://216.250.11.229/app/api/seller/update/product",
|
||||
url: "http://216.250.11.229/derman/app/api/seller/update/product",
|
||||
data: fd,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products/{{id}}`,
|
||||
url: `http://216.250.11.229/derman/app/api/products/{{id}}`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
@ -234,7 +234,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "http://216.250.11.229/app/api/seller/update/product",
|
||||
url: "http://216.250.11.229/derman/app/api/seller/update/product",
|
||||
data: fd,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/seller/order`,
|
||||
url: `http://216.250.11.229/derman/app/api/seller/order`,
|
||||
type: 'POST',
|
||||
data: formData,
|
||||
cache: false,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/seller/orders`,
|
||||
url: `http://216.250.11.229/derman/app/api/seller/orders`,
|
||||
type: 'POST',
|
||||
data: formData,
|
||||
cache: false,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
function getProducts(limit, page) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page,
|
||||
url: `http://216.250.11.229/derman/app/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/seller/report`,
|
||||
url: `http://216.250.11.229/derman/app/api/seller/report`,
|
||||
type: 'POST',
|
||||
data: formData,
|
||||
cache: false,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ function onStart(){
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Place favicon.png in the root directory -->
|
||||
<link rel="shortcut icon" href="http://216.250.11.229/app/vendor/webkul/ui/assets/images/favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="http://216.250.11.229/derman/app/vendor/webkul/ui/assets/images/favicon.ico" type="image/x-icon" />
|
||||
<!-- Font Icons css -->
|
||||
<link rel="stylesheet" href="{{'assets/css/font-icons.css'|theme}}">
|
||||
<!-- plugins css -->
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ title = "Brands"
|
|||
{% put scripts %}
|
||||
<script>
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/attribute-options?locale={{activeLocale}}`,
|
||||
url: `http://216.250.11.229/derman/app/api/attribute-options?locale={{activeLocale}}`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: 'http://216.250.11.229/app/api/customer/cart/add/' + String(prodId),
|
||||
url: 'http://216.250.11.229/derman/app/api/customer/cart/add/' + String(prodId),
|
||||
type: 'POST',
|
||||
headers: { Authorization: 'Bearer {{token}}' },
|
||||
processData: false,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
// console.log(String({{token}}));
|
||||
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/customer/cart`,
|
||||
url: `http://216.250.11.229/derman/app/api/customer/cart`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
headers: {Authorization: 'Bearer {{token}}'},
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: 'http://216.250.11.229/app/api/customer/cart/add/' + String(prodId),
|
||||
url: 'http://216.250.11.229/derman/app/api/customer/cart/add/' + String(prodId),
|
||||
type: 'POST',
|
||||
headers: { Authorization: 'Bearer {{token}}' },
|
||||
processData: false,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
fd.append('device_name', deviceName);
|
||||
|
||||
$.ajax({
|
||||
url: 'http://216.250.11.229/app/api/customer/login',
|
||||
url: 'http://216.250.11.229/derman/app/api/customer/login',
|
||||
data: fd,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
function getBrandProducts(query, limit, brandId, page) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products?brands=`+ brandId + `&` + query + `{{activeLocale}}&limit=` + limit + `&page=` + page,
|
||||
url: `http://216.250.11.229/derman/app/api/products?brands=`+ brandId + `&` + query + `{{activeLocale}}&limit=` + limit + `&page=` + page,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
@ -81,7 +81,7 @@
|
|||
function getCat(query, catId) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/categories/` + catId + `?` + query,
|
||||
url: `http://216.250.11.229/derman/app/api/categories/` + catId + `?` + query,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
function getCatProducts(query, limit, catId, page) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page,
|
||||
url: `http://216.250.11.229/derman/app/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
@ -81,7 +81,7 @@
|
|||
function getCat(query, catId) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/categories/` + catId + `?` + query,
|
||||
url: `http://216.250.11.229/derman/app/api/categories/` + catId + `?` + query,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
console.log(query);
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products?`+query+`{{activeLocale}}&limit=`+limit,
|
||||
url: `http://216.250.11.229/derman/app/api/products?`+query+`{{activeLocale}}&limit=`+limit,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
console.log(query);
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products/{{prodId}}/` + query + `{{activeLocale}}`,
|
||||
url: `http://216.250.11.229/derman/app/api/products/{{prodId}}/` + query + `{{activeLocale}}`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
fd.append('device_name', deviceName);
|
||||
|
||||
$.ajax({
|
||||
url: 'http://216.250.11.229/app/api/customer/register',
|
||||
url: 'http://216.250.11.229/derman/app/api/customer/register',
|
||||
data: fd,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
function getSearchProducts(limit, key, page) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `http://216.250.11.229/app/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page,
|
||||
url: `http://216.250.11.229/derman/app/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
console.log(query);
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: 'http://216.250.11.229/app/api/products?' + query,
|
||||
url: 'http://216.250.11.229/derman/app/api/products?' + query,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue