split router

This commit is contained in:
Tokumeikoi
2020-02-01 20:51:45 +08:00
parent ab5aeb545e
commit 1d704a4424
9 changed files with 214 additions and 84 deletions

View File

@ -0,0 +1,22 @@
<?php
namespace App\Http\Routes;
use Illuminate\Contracts\Routing\Registrar;
class GuestRoute
{
public function map(Registrar $router)
{
$router->group([
'prefix' => 'guest'
], function ($router) {
// Plan
$router->get('plan/fetch', 'Guest\\PlanController@fetch');
// Order
$router->post('order/alipayNotify', 'Guest\\OrderController@alipayNotify');
$router->post('order/stripeNotify', 'Guest\\OrderController@stripeNotify');
$router->post('order/bitpayXNotify', 'Guest\\OrderController@bitpayXNotify');
$router->post('order/payTaroNotify', 'Guest\\OrderController@payTaroNotify');
});
}
}