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');
|
2021-08-05 13:48:24 +08:00
|
|
|
$router->post('/getQuickLoginUrl', 'User\\UserController@getQuickLoginUrl');
|
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
|
|
|
// 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');
|
2022-01-05 23:18:38 +08:00
|
|
|
$router->get ('/server/getServerLogs', 'User\\ServerController@getServerLogs');
|
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-05-19 16:32:35 +08:00
|
|
|
// Telegram
|
|
|
|
$router->get ('/telegram/getBotInfo', 'User\\TelegramController@getBotInfo');
|
2020-05-19 16:49:33 +08:00
|
|
|
// Comm
|
|
|
|
$router->get ('/comm/config', 'User\\CommController@config');
|
2021-04-28 16:56:08 +08:00
|
|
|
$router->Post('/comm/getStripePublicKey', 'User\\CommController@getStripePublicKey');
|
2020-10-18 02:51:32 +08:00
|
|
|
// Knowledge
|
|
|
|
$router->get ('/knowledge/fetch', 'User\\KnowledgeController@fetch');
|
|
|
|
$router->get ('/knowledge/getCategory', 'User\\KnowledgeController@getCategory');
|
2020-02-01 20:51:45 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|