2021-12-30 11:49:40 -03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
2022-01-05 14:11:07 -03:00
|
|
|
use App\GrupoDeCompra;
|
2021-12-30 11:49:40 -03:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| API Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2022-01-05 14:11:07 -03:00
|
|
|
Route::middleware('auth:api')->group(function () {
|
|
|
|
Route::get('/regiones', function() {
|
|
|
|
return GrupoDeCompra::$regiones;
|
|
|
|
});
|
2021-12-30 11:49:40 -03:00
|
|
|
});
|