Version produccion
This commit is contained in:
14
resources/routes/api.php
Normal file
14
resources/routes/api.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [
|
||||
__DIR__,
|
||||
'api'
|
||||
]);
|
||||
if (file_exists($folder)) {
|
||||
$files = new DirectoryIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
16
resources/routes/api/uf.php
Normal file
16
resources/routes/api/uf.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$app->group('/uf', function($app) {
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [
|
||||
__DIR__,
|
||||
'uf'
|
||||
]);
|
||||
if (file_exists($folder)) {
|
||||
$files = new DirectoryIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
||||
});
|
7
resources/routes/api/uf/value.php
Normal file
7
resources/routes/api/uf/value.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
use Aldarien\Money\Common\Controller\API\UF\Value;
|
||||
|
||||
$app->group('/value', function($app) {
|
||||
$app->get('/{fecha}', [Value::class, 'fecha']);
|
||||
$app->get('[/]', Value::class);
|
||||
});
|
10
resources/routes/router.php
Normal file
10
resources/routes/router.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
if (isset($__environment)) {
|
||||
$filename = implode(DIRECTORY_SEPARATOR, [
|
||||
__DIR__,
|
||||
$__environment . '.php'
|
||||
]);
|
||||
if (file_exists($filename)) {
|
||||
include_once $filename;
|
||||
}
|
||||
}
|
18
resources/routes/web.php
Normal file
18
resources/routes/web.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
use Aldarien\Money\Common\Controller\Web\Base;
|
||||
|
||||
$folder = implode(DIRECTORY_SEPARATOR, [
|
||||
__DIR__,
|
||||
'web'
|
||||
]);
|
||||
if (file_exists($folder)) {
|
||||
$files = new DirectoryIterator($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
||||
|
||||
$app->get('/', Base::class);
|
14
resources/views/home.blade.php
Normal file
14
resources/views/home.blade.php
Normal file
@ -0,0 +1,14 @@
|
||||
@extends('layout.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui center aligned container">
|
||||
<div class="ui statistic">
|
||||
<div class="value">
|
||||
$ {{number_format($valor, 2, ',', '.')}}
|
||||
</div>
|
||||
<div class="label">
|
||||
{{$fecha->format('d/m/Y')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
5
resources/views/layout/base.blade.php
Normal file
5
resources/views/layout/base.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{$page_language}}">
|
||||
@include('layout.head')
|
||||
@include('layout.body')
|
||||
</html>
|
3
resources/views/layout/body.blade.php
Normal file
3
resources/views/layout/body.blade.php
Normal file
@ -0,0 +1,3 @@
|
||||
<body>
|
||||
@yield('page_content')
|
||||
</body>
|
5
resources/views/layout/head.blade.php
Normal file
5
resources/views/layout/head.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Money</title>
|
||||
@include('layout.styles')
|
||||
</head>
|
14
resources/views/layout/styles.blade.php
Normal file
14
resources/views/layout/styles.blade.php
Normal file
@ -0,0 +1,14 @@
|
||||
@if (isset($assets->styles))
|
||||
@foreach ($assets->styles as $style)
|
||||
<link rel="stylesheet" type="text/css" href="{{$style}}" />
|
||||
@endforeach
|
||||
@endif
|
||||
@if (isset($assets->fonts))
|
||||
@foreach ($assets->fonts as $type => $fonts)
|
||||
@foreach ($fonts as $font)
|
||||
<link type="{{$type}}" href="{{$font}}" />
|
||||
@endforeach
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@stack('styles')
|
Reference in New Issue
Block a user