mirror of
https://github.com/v2board/v2board.git
synced 2025-06-16 14:47:48 +08:00
update: api version
This commit is contained in:
23
app/Http/Routes/V1/GuestRoute.php
Normal file
23
app/Http/Routes/V1/GuestRoute.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace App\Http\Routes\V1;
|
||||
|
||||
use Illuminate\Contracts\Routing\Registrar;
|
||||
|
||||
class GuestRoute
|
||||
{
|
||||
public function map(Registrar $router)
|
||||
{
|
||||
$router->group([
|
||||
'prefix' => 'guest'
|
||||
], function ($router) {
|
||||
// Plan
|
||||
$router->get ('/plan/fetch', 'V1\\Guest\\PlanController@fetch');
|
||||
// Telegram
|
||||
$router->post('/telegram/webhook', 'V1\\Guest\\TelegramController@webhook');
|
||||
// Payment
|
||||
$router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', 'V1\\Guest\\PaymentController@notify');
|
||||
// Comm
|
||||
$router->get ('/comm/config', 'V1\\Guest\\CommController@config');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user