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-02-01 20:51:45 +08:00
|
|
|
// Order
|
2020-02-01 20:58:36 +08:00
|
|
|
$router->post('/order/alipayNotify', 'Guest\\OrderController@alipayNotify');
|
|
|
|
$router->post('/order/stripeNotify', 'Guest\\OrderController@stripeNotify');
|
|
|
|
$router->post('/order/bitpayXNotify', 'Guest\\OrderController@bitpayXNotify');
|
2020-07-20 19:56:39 +08:00
|
|
|
$router->post('/order/mgateNotify', 'Guest\\OrderController@mgateNotify');
|
2020-11-16 22:22:23 +08:00
|
|
|
$router->post('/order/epayNotify', 'Guest\\OrderController@epayNotify');
|
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
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|