2022-03-05 16:29:58 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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')->get('/user', function (Request $request) {
|
|
|
|
return $request->user();
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('dns/', 'App\Http\Controllers\ApiController@getAllDns');
|
|
|
|
Route::middleware('auth:api')->get('dns/{id}', 'App\Http\Controllers\ApiController@getDns');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('domains/', 'App\Http\Controllers\ApiController@getAllDomains');
|
|
|
|
Route::middleware('auth:api')->get('domains/{id}', 'App\Http\Controllers\ApiController@getDomains');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('servers', 'App\Http\Controllers\ApiController@getAllServers');
|
|
|
|
Route::middleware('auth:api')->get('servers/{id}', 'App\Http\Controllers\ApiController@getServer');
|
|
|
|
|
2022-06-19 06:56:19 +02:00
|
|
|
Route::middleware('auth:api')->post('servers', 'App\Http\Controllers\ApiController@storeServer');
|
|
|
|
Route::middleware('auth:api')->put('servers/{id}', 'App\Http\Controllers\ApiController@updateServer');
|
|
|
|
Route::middleware('auth:api')->delete('servers/{id}', 'App\Http\Controllers\ApiController@destroyServer');
|
|
|
|
|
2022-03-05 16:29:58 +01:00
|
|
|
Route::middleware('auth:api')->get('IPs/', 'App\Http\Controllers\ApiController@getAllIPs');
|
|
|
|
Route::middleware('auth:api')->get('IPs/{id}', 'App\Http\Controllers\ApiController@getIP');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('labels/', 'App\Http\Controllers\ApiController@getAllLabels');
|
|
|
|
Route::middleware('auth:api')->get('labels/{id}', 'App\Http\Controllers\ApiController@getLabel');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('locations/', 'App\Http\Controllers\ApiController@getAllLocations');
|
|
|
|
Route::middleware('auth:api')->get('locations/{id}', 'App\Http\Controllers\ApiController@getLocation');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('misc/', 'App\Http\Controllers\ApiController@getAllMisc');
|
|
|
|
Route::middleware('auth:api')->get('misc/{id}', 'App\Http\Controllers\ApiController@getMisc');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('networkSpeeds/', 'App\Http\Controllers\ApiController@getAllNetworkSpeeds');
|
|
|
|
Route::middleware('auth:api')->get('networkSpeeds/{id}', 'App\Http\Controllers\ApiController@getNetworkSpeeds');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('os/', 'App\Http\Controllers\ApiController@getAllOs');
|
|
|
|
Route::middleware('auth:api')->get('os/{id}', 'App\Http\Controllers\ApiController@getOs');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('pricing/', 'App\Http\Controllers\ApiController@getAllPricing');
|
|
|
|
Route::middleware('auth:api')->get('pricing/{id}', 'App\Http\Controllers\ApiController@getPricing');
|
2022-06-19 13:22:23 +02:00
|
|
|
Route::middleware('auth:api')->put('pricing/{id}', 'App\Http\Controllers\ApiController@updatePricing');
|
2022-03-05 16:29:58 +01:00
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('providers/', 'App\Http\Controllers\ApiController@getAllProviders');
|
|
|
|
Route::middleware('auth:api')->get('providers/{id}', 'App\Http\Controllers\ApiController@getProvider');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('reseller/', 'App\Http\Controllers\ApiController@getAllReseller');
|
|
|
|
Route::middleware('auth:api')->get('reseller/{id}', 'App\Http\Controllers\ApiController@getReseller');
|
|
|
|
|
2022-05-16 08:36:58 +02:00
|
|
|
Route::middleware('auth:api')->get('seedbox/', 'App\Http\Controllers\ApiController@getAllSeedbox');
|
|
|
|
Route::middleware('auth:api')->get('seedbox/{id}', 'App\Http\Controllers\ApiController@getSeedbox');
|
|
|
|
|
2022-03-05 16:29:58 +01:00
|
|
|
Route::middleware('auth:api')->get('settings/', 'App\Http\Controllers\ApiController@getAllSettings');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('shared/', 'App\Http\Controllers\ApiController@getAllShared');
|
|
|
|
Route::middleware('auth:api')->get('shared/{id}', 'App\Http\Controllers\ApiController@getShared');
|
|
|
|
|
|
|
|
//Route::get('providers', 'App\Http\Controllers\ApiController@getAllProvidersTable')->name('get-all-providers');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('online/{hostname}', 'App\Http\Controllers\ApiController@checkHostIsUp');
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('dns/{domainName}/{type}', 'App\Http\Controllers\ApiController@getIpForDomain');
|
2022-08-09 16:34:03 +02:00
|
|
|
|
2022-09-07 05:58:38 +02:00
|
|
|
Route::middleware('throttle:4')->post('yabs/{server}/{key}', 'App\Http\Controllers\ApiController@storeYabs')->name('api.store-yabs');
|
2022-08-09 16:34:03 +02:00
|
|
|
Route::middleware('auth:api')->get('yabs/', 'App\Http\Controllers\ApiController@getAllYabs');
|
|
|
|
Route::middleware('auth:api')->get('yabs/{id}', 'App\Http\Controllers\ApiController@getYabs');
|
2024-06-20 09:01:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
Route::middleware('auth:api')->get('notes', 'App\Http\Controllers\ApiController@getAllNotes');
|
|
|
|
Route::middleware('auth:api')->get('notes/{id}', 'App\Http\Controllers\ApiController@getNote');
|
|
|
|
Route::middleware('auth:api')->post('notes', 'App\Http\Controllers\ApiController@storeNote');
|
|
|
|
Route::middleware('auth:api')->put('notes/{id}', 'App\Http\Controllers\ApiController@updateNote');
|