123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?php
- use Illuminate\Http\Request;
- Route::prefix('v1')
- ->group(function () {
-
- Route::prefix('admin')
- ->middleware('admin')
- ->group(function () {
-
- Route::get ('config/fetch', 'Admin\\ConfigController@fetch');
- Route::post('config/save', 'Admin\\ConfigController@save');
-
- Route::get ('plan/fetch', 'Admin\\PlanController@fetch');
- Route::post('plan/save', 'Admin\\PlanController@save');
- Route::post('plan/drop', 'Admin\\PlanController@drop');
- Route::post('plan/update', 'Admin\\PlanController@update');
-
- Route::get ('server/fetch', 'Admin\\ServerController@fetch');
- Route::post('server/save', 'Admin\\ServerController@save');
- Route::get ('server/group/fetch', 'Admin\\ServerController@groupFetch');
- Route::post('server/group/save', 'Admin\\ServerController@groupSave');
- Route::post('server/group/drop', 'Admin\\ServerController@groupDrop');
- Route::post('server/drop', 'Admin\\ServerController@drop');
- Route::post('server/update', 'Admin\\ServerController@update');
-
- Route::get ('order/fetch', 'Admin\\OrderController@fetch');
- Route::post('order/repair', 'Admin\\OrderController@repair');
- Route::post('order/update', 'Admin\\OrderController@update');
-
- Route::get ('user/fetch', 'Admin\\UserController@fetch');
- Route::post('user/update', 'Admin\\UserController@update');
- Route::get ('user/id2UserInfo/{id}', 'Admin\\UserController@id2UserInfo');
-
- Route::get ('stat/getOverride', 'Admin\\StatController@getOverride');
-
- Route::get ('notice/fetch', 'Admin\\NoticeController@fetch');
- Route::post('notice/save', 'Admin\\NoticeController@save');
- Route::post('notice/update', 'Admin\\NoticeController@update');
- Route::post('notice/drop', 'Admin\\NoticeController@drop');
-
- Route::get ('ticket/fetch', 'Admin\\TicketController@fetch');
- Route::post('ticket/reply', 'Admin\\TicketController@reply');
- Route::post('ticket/close', 'Admin\\TicketController@close');
-
- Route::post('mail/send', 'Admin\\MailController@send');
-
- Route::get ('coupon/fetch', 'Admin\\CouponController@fetch');
- Route::post('coupon/save', 'Admin\\CouponController@save');
- });
-
- Route::prefix('user')
- ->middleware('user')
- ->group(function () {
-
- Route::get ('resetSecurity', 'UserController@resetSecurity');
- Route::get ('logout', 'UserController@logout');
- Route::get ('info', 'UserController@info');
- Route::post('changePassword', 'UserController@changePassword');
- Route::post('update', 'UserController@update');
- Route::get ('getSubscribe', 'UserController@getSubscribe');
- Route::get ('getStat', 'UserController@getStat');
-
- Route::post('order/save', 'OrderController@save');
- Route::post('order/checkout', 'OrderController@checkout');
- Route::get ('order/check', 'OrderController@check');
- Route::get ('order/details', 'OrderController@details');
- Route::get ('order/fetch', 'OrderController@fetch');
- Route::get ('order/getPaymentMethod', 'OrderController@getPaymentMethod');
-
- Route::post('plan/fetch', 'PlanController@fetch');
-
- Route::get ('invite/save', 'InviteController@save');
- Route::get ('invite/fetch', 'InviteController@fetch');
- Route::get ('invite/details', 'InviteController@details');
-
- Route::get ('tutorial/getSubscribeUrl', 'TutorialController@getSubscribeUrl');
- Route::get ('tutorial/getAppleID', 'TutorialController@getAppleID');
-
- Route::get ('notice/fetch', 'NoticeController@fetch');
-
- Route::post('ticket/reply', 'TicketController@reply');
- Route::post('ticket/close', 'TicketController@close');
- Route::post('ticket/save', 'TicketController@save');
- Route::get ('ticket/fetch', 'TicketController@fetch');
-
- Route::get ('server/fetch', 'ServerController@fetch');
- Route::get ('server/log/fetch', 'ServerController@logFetch');
- });
-
- Route::prefix('passport')
- ->group(function () {
-
- Route::post('register', 'Passport\\RegisterController@index');
-
- Route::get ('config', 'Passport\\CommController@config');
- Route::post('sendEmailVerify', 'Passport\\CommController@sendEmailVerify');
-
- Route::post('login', 'Passport\\LoginController@index');
- Route::get ('token2Login', 'Passport\\LoginController@token2Login');
- Route::get ('check', 'Passport\\LoginController@check');
-
- Route::post('forget', 'Passport\\ForgetController@index');
- });
-
- Route::prefix('guest')
- ->group(function () {
-
- Route::get ('plan/fetch', 'Guest\\PlanController@fetch');
-
- Route::post('order/alipayNotify', 'Guest\\OrderController@alipayNotify');
- Route::post('order/stripeNotify', 'Guest\\OrderController@stripeNotify');
- Route::post('order/bitpayXNotify', 'Guest\\OrderController@bixpayXNotify');
- });
-
- Route::prefix('client')
- ->middleware('client')
- ->group(function () {
-
- Route::get ('subscribe', 'ClientController@subscribe');
-
- Route::get ('app/data', 'AppController@data');
- Route::get ('app/config', 'AppController@config');
- });
-
- Route::prefix('server')
- ->group(function () {
-
- Route::get ('deepbwork/user', 'Server\\DeepbworkController@user');
- Route::get ('deepbwork/config', 'Server\\DeepbworkController@config');
- Route::post('deepbwork/submit', 'Server\\DeepbworkController@submit');
- });
- });
|