2018-11-15 10:45:49 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-20 13:03:20 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
use App\Http\Controllers\{DomainController};
|
2018-11-15 10:45:49 +00: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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-06-20 13:03:20 +00:00
|
|
|
Route::middleware(['auth:api'])->group(function () {
|
|
|
|
Route::get('regions/{o}',[DomainController::class,'api_regions']);
|
|
|
|
Route::get('hosts/{o}/{region}',[DomainController::class,'api_hosts']);
|
|
|
|
Route::get('hubs/{o}/{host}',[DomainController::class,'api_hubs']);
|
|
|
|
});
|