diff --git a/public/js/main.js b/public/js/main.js
new file mode 100644
index 0000000..ab54335
--- /dev/null
+++ b/public/js/main.js
@@ -0,0 +1,10 @@
+new Vue({
+ el: '#select',
+ data: {
+ regiones: []
+ },
+ mounted() {
+ axios.get("/api/regiones").then(response => this.regiones = response.data);
+ }
+
+})
\ No newline at end of file
diff --git a/resources/views/inicio.blade.php b/resources/views/inicio.blade.php
new file mode 100644
index 0000000..076b2f3
--- /dev/null
+++ b/resources/views/inicio.blade.php
@@ -0,0 +1,31 @@
+
+
+
+
+
+ Compras del MPS
+
+
+
+
+
+
+ Compras MPS
+
+
+ Bienvenidx a la aplicación de compras del Mercado Popular de Subsistencia
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php
deleted file mode 100644
index 7bc3372..0000000
--- a/resources/views/welcome.blade.php
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-
-
-
-
- Laravel
-
-
-
-
-
-
-
-
-
- @if (Route::has('login'))
-
- @auth
-
Home
- @else
-
Login
-
- @if (Route::has('register'))
-
Register
- @endif
- @endauth
-
- @endif
-
-
-
-
-
diff --git a/routes/api.php b/routes/api.php
index cee4d6f..9df94ce 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -16,7 +16,7 @@ use App\Producto;
|
*/
-Route::middleware('auth:api')->group(function () {
+Route::middleware('api')->group(function () {
Route::get('/regiones', function() {
return GrupoDeCompra::all()->pluck('region')->unique()->flatten();
});
@@ -28,10 +28,12 @@ Route::middleware('auth:api')->group(function () {
});
});
+ //@TO DO -> esta ruta debe estar en middleware de autenticacion
Route::get('/categorias', function() {
return Producto::all()->pluck('categoria')->unique()->flatten();
});
+ //@TO DO -> esta ruta debe estar en middleware de autenticacion
Route::prefix('productos')->group(function () {
Route::get('/','Api\ProductoController@index');
});
diff --git a/routes/web.php b/routes/web.php
index b130397..f7452f4 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -14,5 +14,5 @@ use Illuminate\Support\Facades\Route;
*/
Route::get('/', function () {
- return view('welcome');
+ return view('inicio');
});