mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-23 11:08:13 -05:00
28 lines
911 B
PHP
28 lines
911 B
PHP
<?php
|
|
namespace App\Http\Routes\V1;
|
|
|
|
use App\Http\Controllers\V1\Guest\CommController;
|
|
use App\Http\Controllers\V1\Guest\PaymentController;
|
|
use App\Http\Controllers\V1\Guest\PlanController;
|
|
use App\Http\Controllers\V1\Guest\TelegramController;
|
|
use Illuminate\Contracts\Routing\Registrar;
|
|
|
|
class GuestRoute
|
|
{
|
|
public function map(Registrar $router)
|
|
{
|
|
$router->group([
|
|
'prefix' => 'guest'
|
|
], function ($router) {
|
|
// Plan
|
|
$router->get('/plan/fetch', [PlanController::class, 'fetch']);
|
|
// Telegram
|
|
$router->post('/telegram/webhook', [TelegramController::class, 'webhook']);
|
|
// Payment
|
|
$router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', [PaymentController::class, 'notify']);
|
|
// Comm
|
|
$router->get('/comm/config', [CommController::class, 'config']);
|
|
});
|
|
}
|
|
}
|