change api

This commit is contained in:
Afiq
2021-01-17 08:45:28 +08:00
parent c316712feb
commit fb6d301884
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -132,7 +132,7 @@ function tambahdanserahanfunc(e)
$.ajax({
method:"POST",
url: 'http://api.localhost:8000/api/requestTeller/ALS/SAMSIANA',
url: api_url + '/api/requestTeller/ALS/SAMSIANA',
data: {
"modal" : txt,
"serahan" : 0
@@ -155,7 +155,7 @@ function tambahdanserahanfunc(e)
$.ajax({
method:"POST",
url: 'http://api.localhost:8000/api/requestTeller/ALS/SAMSIANA',
url: api_url + '/api/requestTeller/ALS/SAMSIANA',
data: {
'modal' : 0,
'serahan' : txt
@@ -101,12 +101,12 @@
</div>
<script>
$(document).ready(function(){
var api_url = "<?php echo $api_url ?>";
$(document).ready(function(){
function getData(){
$.ajax({
type: 'get',
url: 'http://api.localhost:8000/api/requestTeller/get/ALS/SAMSIANA',
url: api_url + '/api/requestTeller/get/ALS/SAMSIANA',
success: function(data){
gettable(data);
}
+3 -3
View File
@@ -101,12 +101,12 @@
</div>
<script>
$(document).ready(function(){
var api_url = "<?php echo $api_url ?>";
$(document).ready(function(){
function getData(){
$.ajax({
type: 'get',
url: 'http://api.localhost:8000/api/requestTeller/get/ALS/SAMSIANA',
url: api_url + '/api/requestTeller/get/ALS/SAMSIANA',
success: function(data){
gettable(data);
}