2018-11-15 10:45:49 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-20 13:03:20 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2021-08-09 13:35:22 +00:00
|
|
|
|
2021-11-11 11:57:13 +00:00
|
|
|
use App\Http\Controllers\{DomainController,SystemController,ZoneController};
|
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']);
|
2021-11-11 11:57:13 +00:00
|
|
|
Route::get('systems/orphan',[SystemController::class,'api_orphan']);
|
2021-06-20 13:03:20 +00:00
|
|
|
Route::get('hubs/{o}/{host}',[DomainController::class,'api_hubs']);
|
2021-08-09 13:35:22 +00:00
|
|
|
Route::post('default/{o}',[ZoneController::class,'api_default']);
|
2021-06-20 13:03:20 +00:00
|
|
|
});
|