API Url
This commit is contained in:
@ -10,6 +10,7 @@ return [
|
||||
'app' => '{locations.base}/app',
|
||||
'controllers' => '{locations.app}/Controller',
|
||||
'money' => 'provm.cl/optimus/money',
|
||||
'api' => '192.168.1.100/intranet/api'
|
||||
'api' => '192.168.1.100/intranet/api',
|
||||
'api_url' => '/api'
|
||||
];
|
||||
?>
|
||||
|
@ -69,7 +69,7 @@
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
function findUnidades(proyecto) {
|
||||
$.getJSON('{!!$locations['api']!!}/unidades/no_reservadas/' + proyecto + '/1', function(data) {
|
||||
$.getJSON('{!!$locations['api_url']!!}/unidades/no_reservadas/' + proyecto + '/1', function(data) {
|
||||
var unidades = $('#departamento')
|
||||
unidades.html('')
|
||||
$.each(data, function(i, el) {
|
||||
@ -83,7 +83,7 @@
|
||||
var unis = []
|
||||
function agregarUnidad(tipo) {
|
||||
var proyecto = $('#proyecto').val()
|
||||
$.getJSON('{!!$locations['api']!!}/unidades/no_reservadas/' + proyecto + '/' + tipo, function(data) {
|
||||
$.getJSON('{!!$locations['api_url']!!}/unidades/no_reservadas/' + proyecto + '/' + tipo, function(data) {
|
||||
var unidades = $('#unidades')
|
||||
var n = unis[unis.length - 1] + 1;
|
||||
if (unis.length == 0) {
|
||||
|
Reference in New Issue
Block a user