69 lines
4.5 KiB
PHP
69 lines
4.5 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::auth();
|
|
Route::get('/', function () {
|
|
return redirect()->route('login');
|
|
});
|
|
|
|
Route::get('/maintenance/planned', [App\Http\Controllers\MaintenanceController::class, 'planned'])->name('maintenance.planned');
|
|
Route::get('/maintenance/planned/{maintenance_history}', [App\Http\Controllers\MaintenanceController::class, 'plannedDetail'])->name('maintenance.planned.detail');
|
|
Route::put('/maintenance/planned/{maintenance_history}', [App\Http\Controllers\MaintenanceController::class, 'plannedDetailPut'])->name('maintenance.planned.detail.put');
|
|
Route::post('/maintenance/planned/{maintenance_history}/finished', [App\Http\Controllers\MaintenanceController::class, 'plannedDetailFinishPost'])->name('maintenance.planned.finished');
|
|
Route::get('/maintenance/history/', [App\Http\Controllers\MaintenanceController::class, 'history'])->name('maintenance.history');
|
|
Route::get('/maintenance/history/{maintenance_history}', [App\Http\Controllers\MaintenanceController::class, 'historyDetail'])->name('maintenance.history.detail');
|
|
|
|
|
|
Route::get('/host', [App\Http\Controllers\HostController::class, 'index'])->name('host');
|
|
Route::get('/host/sync', [App\Http\Controllers\HostController::class, 'sync'])->name('host.sync');
|
|
|
|
|
|
Route::get('/maintenance', [App\Http\Controllers\MaintenanceController::class, 'index'])->name('maintenance');
|
|
Route::get('/tasks', [App\Http\Controllers\TaskController::class, 'index'])->name('tasks');
|
|
|
|
|
|
Route::prefix('profile')->name('profile.')->middleware(['auth'])->group(function () {
|
|
Route::get('/', [App\Http\Controllers\Auth\ProfileController::class, 'index'])->middleware('auth')->name('index');
|
|
Route::put('/update', [App\Http\Controllers\Auth\ProfileController::class, 'update'])->middleware('auth')->name('update');
|
|
Route::get('/api', [App\Http\Controllers\Auth\ProfileController::class, 'api'])->middleware('auth')->name('api');
|
|
Route::post('/api/create', [App\Http\Controllers\Auth\ProfileController::class, 'createApiToken'])->middleware('auth')->name('api.create');
|
|
Route::delete('/api/remove', [App\Http\Controllers\Auth\ProfileController::class, 'removeApiToken'])->middleware('auth')->name('api.remove');
|
|
});
|
|
|
|
Route::prefix('system')->name('system.')->middleware(['auth'])->group(function () {
|
|
Route::get('/audit', [App\Http\Controllers\System\AuditController::class, 'index'])->name('audit.index');
|
|
|
|
Route::get('/user', [App\Http\Controllers\System\UserController::class, 'index'])->name('user.index');
|
|
|
|
Route::get('/subscription', [App\Http\Controllers\System\SubscriptionController::class, 'index'])->name('subscription.index');
|
|
|
|
Route::get('/api', [App\Http\Controllers\System\ApiController::class, 'index'])->name('api.index');
|
|
|
|
Route::prefix('jobs')->name('jobs.')->group(function () {
|
|
Route::get('/', [App\Http\Controllers\System\JobsController::class, 'index'])->name('index');
|
|
Route::get('/clear', [App\Http\Controllers\System\JobsController::class, 'clear'])->name('clear');
|
|
Route::get('/call/{job}', [App\Http\Controllers\System\JobsController::class, 'call'])->name('call');
|
|
});
|
|
|
|
Route::prefix('cache')->name('cache.')->group(function () {
|
|
Route::get('/', [App\Http\Controllers\System\CacheController::class, 'index'])->name('index');
|
|
Route::get('/clear', [App\Http\Controllers\System\CacheController::class, 'clear'])->name('clear');
|
|
});
|
|
|
|
Route::prefix('log')->name('log.')->group(function () {
|
|
Route::get('/', [App\Http\Controllers\System\LogController::class, 'index'])->name('index');
|
|
Route::get('/detail/{file}', [App\Http\Controllers\System\LogController::class, 'detail'])->name('detail');
|
|
Route::get('/download/{file}', [App\Http\Controllers\System\LogController::class, 'download'])->name('download');
|
|
Route::get('/clear', [App\Http\Controllers\System\LogController::class, 'clear'])->name('clear');
|
|
});
|
|
|
|
Route::prefix('backup')->name('backup.')->group(function () {
|
|
Route::get('/', [App\Http\Controllers\System\BackupController::class, 'index'])->name('index');
|
|
Route::get('/run', [App\Http\Controllers\System\BackupController::class, 'run'])->name('run');
|
|
Route::get('/delete/{backup_date}', [App\Http\Controllers\System\BackupController::class, 'delete'])->name('delete');
|
|
Route::get('/download/{file_name}', [App\Http\Controllers\System\BackupController::class, 'download'])->name('download');
|
|
Route::get('/download', [App\Http\Controllers\System\BackupController::class, 'download'])->name('download.latest');
|
|
});
|
|
});
|