Xboard/app/Http/Routes/V1/GuestRoute.php

28 lines
911 B
PHP
Raw Normal View History

2023-11-17 01:44:01 -05:00
<?php
namespace App\Http\Routes\V1;
2025-01-06 12:20:11 -05:00
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;
2023-11-17 01:44:01 -05:00
use Illuminate\Contracts\Routing\Registrar;
class GuestRoute
{
public function map(Registrar $router)
{
$router->group([
'prefix' => 'guest'
], function ($router) {
// Plan
2025-01-06 12:20:11 -05:00
$router->get('/plan/fetch', [PlanController::class, 'fetch']);
2023-11-17 01:44:01 -05:00
// Telegram
2025-01-06 12:20:11 -05:00
$router->post('/telegram/webhook', [TelegramController::class, 'webhook']);
2023-11-17 01:44:01 -05:00
// Payment
2025-01-06 12:20:11 -05:00
$router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', [PaymentController::class, 'notify']);
2023-11-17 01:44:01 -05:00
// Comm
2025-01-06 12:20:11 -05:00
$router->get('/comm/config', [CommController::class, 'config']);
2023-11-17 01:44:01 -05:00
});
}
}