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
@@ -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);
}