2020-02-01 20:51:45 +08:00
|
|
|
<?php
|
|
|
|
namespace App\Http\Routes;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Routing\Registrar;
|
|
|
|
|
|
|
|
class GuestRoute
|
|
|
|
{
|
|
|
|
public function map(Registrar $router)
|
|
|
|
{
|
|
|
|
$router->group([
|
|
|
|
'prefix' => 'guest'
|
|
|
|
], function ($router) {
|
|
|
|
// Plan
|
2020-02-01 21:54:08 +08:00
|
|
|
$router->get ('/plan/fetch', 'Guest\\PlanController@fetch');
|
2020-05-17 15:23:39 +08:00
|
|
|
// Telegram
|
|
|
|
$router->post('/telegram/webhook', 'Guest\\TelegramController@webhook');
|
2021-04-28 16:56:08 +08:00
|
|
|
// Payment
|
2021-05-07 00:17:55 +08:00
|
|
|
$router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', 'Guest\\PaymentController@notify');
|
2021-05-06 23:15:30 +08:00
|
|
|
// Comm
|
|
|
|
$router->get ('/comm/config', 'Guest\\CommController@config');
|
2020-02-01 20:51:45 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|