pedi2/routes/api.php

23 lines
624 B
PHP
Raw Normal View History

2021-12-30 11:49:40 -03:00
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
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!
|
*/
Route::middleware('auth:api')->group(function () {
Route::get('/regiones', function() {
return GrupoDeCompra::$regiones;
});
2021-12-30 11:49:40 -03:00
});