v2board/app/Http/Routes/UserRoute.php

57 lines
2.8 KiB
PHP
Raw Normal View History

2020-02-01 20:51:45 +08:00
<?php
namespace App\Http\Routes;
use Illuminate\Contracts\Routing\Registrar;
class UserRoute
{
public function map(Registrar $router)
{
$router->group([
'prefix' => 'user',
'middleware' => 'user'
], function ($router) {
// User
2020-02-01 21:54:08 +08:00
$router->get ('/resetSecurity', 'User\\UserController@resetSecurity');
$router->get ('/logout', 'User\\UserController@logout');
$router->get ('/info', 'User\\UserController@info');
2020-02-01 20:58:36 +08:00
$router->post('/changePassword', 'User\\UserController@changePassword');
$router->post('/update', 'User\\UserController@update');
2020-02-01 21:54:08 +08:00
$router->get ('/getSubscribe', 'User\\UserController@getSubscribe');
$router->get ('/getStat', 'User\\UserController@getStat');
2020-05-10 18:38:02 +08:00
$router->post('/transfer', 'User\\UserController@transfer');
2020-02-01 20:51:45 +08:00
// Order
2020-02-01 20:58:36 +08:00
$router->post('/order/save', 'User\\OrderController@save');
$router->post('/order/checkout', 'User\\OrderController@checkout');
2020-02-01 21:54:08 +08:00
$router->get ('/order/check', 'User\\OrderController@check');
$router->get ('/order/details', 'User\\OrderController@details');
$router->get ('/order/fetch', 'User\\OrderController@fetch');
$router->get ('/order/getPaymentMethod', 'User\\OrderController@getPaymentMethod');
2020-02-01 20:58:36 +08:00
$router->post('/order/cancel', 'User\\OrderController@cancel');
2020-02-01 20:51:45 +08:00
// Plan
2020-02-01 21:54:08 +08:00
$router->get ('/plan/fetch', 'User\\PlanController@fetch');
2020-02-01 20:51:45 +08:00
// Invite
2020-02-01 21:54:08 +08:00
$router->get ('/invite/save', 'User\\InviteController@save');
$router->get ('/invite/fetch', 'User\\InviteController@fetch');
$router->get ('/invite/details', 'User\\InviteController@details');
2020-02-01 20:51:45 +08:00
// Tutorial
2020-02-01 21:54:08 +08:00
$router->get ('/tutorial/getSubscribeUrl', 'User\\TutorialController@getSubscribeUrl');
$router->get ('/tutorial/getAppleID', 'User\\TutorialController@getAppleID');
$router->get ('/tutorial/fetch', 'User\\TutorialController@fetch');
2020-02-01 20:51:45 +08:00
// Notice
2020-02-01 21:54:08 +08:00
$router->get ('/notice/fetch', 'User\\NoticeController@fetch');
2020-02-01 20:51:45 +08:00
// Ticket
2020-02-01 20:58:36 +08:00
$router->post('/ticket/reply', 'User\\TicketController@reply');
$router->post('/ticket/close', 'User\\TicketController@close');
$router->post('/ticket/save', 'User\\TicketController@save');
2020-02-01 21:54:08 +08:00
$router->get ('/ticket/fetch', 'User\\TicketController@fetch');
2020-05-10 18:38:02 +08:00
$router->post('/ticket/withdraw', 'User\\TicketController@withdraw');
2020-02-01 20:51:45 +08:00
// Server
2020-02-01 21:54:08 +08:00
$router->get ('/server/fetch', 'User\\ServerController@fetch');
$router->get ('/server/log/fetch', 'User\\ServerController@logFetch');
2020-02-01 20:51:45 +08:00
// Coupon
2020-02-01 20:58:36 +08:00
$router->post('/coupon/check', 'User\\CouponController@check');
2020-02-01 20:51:45 +08:00
});
}
}