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

24 lines
710 B
PHP
Raw Normal View History

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