InfraHub
1<?php
2
3use Illuminate\Http\Request;
4use Illuminate\Support\Facades\Route;
5use App\Http\Controllers\VPNProxyController;
6use App\Http\Controllers\ServerStatusController;
7use App\Http\Controllers\BotIntegrationController;
8use App\Http\Controllers\LogController;
9use App\Http\Controllers\ServiceControlController;
10
11/*
12|--------------------------------------------------------------------------
13| API Routes
14|--------------------------------------------------------------------------
15*/
16
17Route::middleware('auth:sanctum')->group(function () {
18// VPN and Proxy Management
19Route::apiResource('vpn-proxies', VPNProxyController::class);
20
21// Server Status Monitoring
22Route::get('server-status', [ServerStatusController::class, 'index']);
23
24// Bot Integration
25Route::post('bots/send-ticket', [BotIntegrationController::class, 'sendTicket']);
26
27// Logs and Notifications
28Route::get('logs', [LogController::class, 'index']);
29
30// Service Control Panel
31Route::post('services/{service}/control', [ServiceControlController::class, 'control']);
32});
33