mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: api version
This commit is contained in:
parent
32eaf301fe
commit
4c97d7e429
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\ConfigSave;
|
use App\Http\Requests\Admin\ConfigSave;
|
||||||
use App\Jobs\SendEmailJob;
|
use App\Jobs\SendEmailJob;
|
||||||
use App\Services\TelegramService;
|
use App\Services\TelegramService;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Utils\Dict;
|
use App\Utils\Dict;
|
||||||
use App\Http\Controllers\Controller;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
use Illuminate\Support\Facades\Artisan;
|
||||||
use Illuminate\Support\Facades\File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
@ -1,15 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
use App\Http\Requests\Admin\CouponSave;
|
|
||||||
use App\Http\Requests\Admin\CouponGenerate;
|
|
||||||
use App\Models\Plan;
|
|
||||||
use App\Models\User;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Http\Requests\Admin\CouponGenerate;
|
||||||
|
use App\Http\Requests\Admin\CouponSave;
|
||||||
use App\Models\Coupon;
|
use App\Models\Coupon;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class CouponController extends Controller
|
class CouponController extends Controller
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\KnowledgeSave;
|
use App\Http\Requests\Admin\KnowledgeSave;
|
||||||
use App\Http\Requests\Admin\KnowledgeSort;
|
use App\Http\Requests\Admin\KnowledgeSort;
|
||||||
use App\Models\Knowledge;
|
use App\Models\Knowledge;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class KnowledgeController extends Controller
|
class KnowledgeController extends Controller
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
use App\Http\Requests\Admin\NoticeSave;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Http\Requests\Admin\NoticeSave;
|
||||||
use App\Models\Notice;
|
use App\Models\Notice;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
|
|
||||||
class NoticeController extends Controller
|
class NoticeController extends Controller
|
@ -1,19 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\OrderAssign;
|
use App\Http\Requests\Admin\OrderAssign;
|
||||||
use App\Http\Requests\Admin\OrderUpdate;
|
|
||||||
use App\Http\Requests\Admin\OrderFetch;
|
use App\Http\Requests\Admin\OrderFetch;
|
||||||
|
use App\Http\Requests\Admin\OrderUpdate;
|
||||||
use App\Models\CommissionLog;
|
use App\Models\CommissionLog;
|
||||||
|
use App\Models\Order;
|
||||||
|
use App\Models\Plan;
|
||||||
|
use App\Models\User;
|
||||||
use App\Services\OrderService;
|
use App\Services\OrderService;
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\Order;
|
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\Plan;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class OrderController extends Controller
|
class OrderController extends Controller
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\PaymentSave;
|
use App\Http\Requests\Admin\PaymentSave;
|
||||||
|
use App\Models\Payment;
|
||||||
use App\Services\PaymentService;
|
use App\Services\PaymentService;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\Payment;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class PaymentController extends Controller
|
class PaymentController extends Controller
|
@ -1,16 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\PlanSave;
|
use App\Http\Requests\Admin\PlanSave;
|
||||||
use App\Http\Requests\Admin\PlanSort;
|
use App\Http\Requests\Admin\PlanSort;
|
||||||
use App\Http\Requests\Admin\PlanUpdate;
|
use App\Http\Requests\Admin\PlanUpdate;
|
||||||
|
use App\Models\Order;
|
||||||
|
use App\Models\Plan;
|
||||||
|
use App\Models\User;
|
||||||
use App\Services\PlanService;
|
use App\Services\PlanService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\Plan;
|
|
||||||
use App\Models\Order;
|
|
||||||
use App\Models\User;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class PlanController extends Controller
|
class PlanController extends Controller
|
@ -1,16 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin\Server;
|
namespace App\Http\Controllers\V1\Admin\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Plan;
|
use App\Models\Plan;
|
||||||
use App\Models\ServerShadowsocks;
|
|
||||||
use App\Models\ServerTrojan;
|
|
||||||
use App\Models\ServerVmess;
|
|
||||||
use App\Models\ServerGroup;
|
use App\Models\ServerGroup;
|
||||||
|
use App\Models\ServerVmess;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
|
|
||||||
class GroupController extends Controller
|
class GroupController extends Controller
|
||||||
{
|
{
|
@ -1,14 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin\Server;
|
namespace App\Http\Controllers\V1\Admin\Server;
|
||||||
|
|
||||||
use App\Http\Requests\Admin\ServerVmessSave;
|
|
||||||
use App\Http\Requests\Admin\ServerVmessUpdate;
|
|
||||||
use App\Models\ServerHysteria;
|
|
||||||
use App\Services\ServerService;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\ServerVmess;
|
use App\Models\ServerHysteria;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class HysteriaController extends Controller
|
class HysteriaController extends Controller
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin\Server;
|
namespace App\Http\Controllers\V1\Admin\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class ManageController extends Controller
|
class ManageController extends Controller
|
@ -1,14 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin\Server;
|
namespace App\Http\Controllers\V1\Admin\Server;
|
||||||
|
|
||||||
use App\Http\Requests\Admin\ServerShadowsocksSave;
|
|
||||||
use App\Http\Requests\Admin\ServerShadowsocksUpdate;
|
|
||||||
use App\Models\ServerRoute;
|
|
||||||
use App\Models\ServerShadowsocks;
|
|
||||||
use App\Services\ServerService;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\ServerRoute;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class RouteController extends Controller
|
class RouteController extends Controller
|
||||||
{
|
{
|
@ -1,13 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin\Server;
|
namespace App\Http\Controllers\V1\Admin\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\ServerShadowsocksSave;
|
use App\Http\Requests\Admin\ServerShadowsocksSave;
|
||||||
use App\Http\Requests\Admin\ServerShadowsocksUpdate;
|
use App\Http\Requests\Admin\ServerShadowsocksUpdate;
|
||||||
use App\Models\ServerShadowsocks;
|
use App\Models\ServerShadowsocks;
|
||||||
use App\Services\ServerService;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
|
|
||||||
class ShadowsocksController extends Controller
|
class ShadowsocksController extends Controller
|
||||||
{
|
{
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin\Server;
|
namespace App\Http\Controllers\V1\Admin\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\ServerTrojanSave;
|
use App\Http\Requests\Admin\ServerTrojanSave;
|
||||||
use App\Http\Requests\Admin\ServerTrojanUpdate;
|
use App\Http\Requests\Admin\ServerTrojanUpdate;
|
||||||
|
use App\Models\ServerTrojan;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\ServerTrojan;
|
|
||||||
|
|
||||||
class TrojanController extends Controller
|
class TrojanController extends Controller
|
||||||
{
|
{
|
@ -1,13 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin\Server;
|
namespace App\Http\Controllers\V1\Admin\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\ServerVmessSave;
|
use App\Http\Requests\Admin\ServerVmessSave;
|
||||||
use App\Http\Requests\Admin\ServerVmessUpdate;
|
use App\Http\Requests\Admin\ServerVmessUpdate;
|
||||||
use App\Services\ServerService;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\ServerVmess;
|
use App\Models\ServerVmess;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class VmessController extends Controller
|
class VmessController extends Controller
|
||||||
{
|
{
|
@ -1,23 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\CommissionLog;
|
use App\Models\CommissionLog;
|
||||||
|
use App\Models\Order;
|
||||||
use App\Models\ServerShadowsocks;
|
use App\Models\ServerShadowsocks;
|
||||||
use App\Models\ServerTrojan;
|
use App\Models\ServerTrojan;
|
||||||
use App\Models\StatUser;
|
|
||||||
use App\Services\ServerService;
|
|
||||||
use App\Services\StatisticalService;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\ServerGroup;
|
|
||||||
use App\Models\ServerVmess;
|
use App\Models\ServerVmess;
|
||||||
use App\Models\Plan;
|
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\Ticket;
|
|
||||||
use App\Models\Order;
|
|
||||||
use App\Models\Stat;
|
use App\Models\Stat;
|
||||||
use App\Models\StatServer;
|
use App\Models\StatServer;
|
||||||
|
use App\Models\StatUser;
|
||||||
|
use App\Models\Ticket;
|
||||||
|
use App\Models\User;
|
||||||
|
use App\Services\StatisticalService;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
@ -1,10 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Log as LogModel;
|
||||||
use App\Utils\CacheKey;
|
use App\Utils\CacheKey;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
@ -14,7 +15,6 @@ use Laravel\Horizon\Contracts\MetricsRepository;
|
|||||||
use Laravel\Horizon\Contracts\SupervisorRepository;
|
use Laravel\Horizon\Contracts\SupervisorRepository;
|
||||||
use Laravel\Horizon\Contracts\WorkloadRepository;
|
use Laravel\Horizon\Contracts\WorkloadRepository;
|
||||||
use Laravel\Horizon\WaitTimeCalculator;
|
use Laravel\Horizon\WaitTimeCalculator;
|
||||||
use App\Models\Log as LogModel;
|
|
||||||
|
|
||||||
class SystemController extends Controller
|
class SystemController extends Controller
|
||||||
{
|
{
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Services\ThemeService;
|
use App\Services\ThemeService;
|
||||||
use Illuminate\Support\Facades\File;
|
|
||||||
use Illuminate\Support\Facades\Artisan;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Artisan;
|
||||||
|
use Illuminate\Support\Facades\File;
|
||||||
|
|
||||||
class ThemeController extends Controller
|
class ThemeController extends Controller
|
||||||
{
|
{
|
@ -1,14 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
use App\Jobs\SendEmailJob;
|
|
||||||
use App\Services\TicketService;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Ticket;
|
use App\Models\Ticket;
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\TicketMessage;
|
use App\Models\TicketMessage;
|
||||||
|
use App\Models\User;
|
||||||
|
use App\Services\TicketService;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
@ -1,19 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\V1\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\UserFetch;
|
use App\Http\Requests\Admin\UserFetch;
|
||||||
use App\Http\Requests\Admin\UserGenerate;
|
use App\Http\Requests\Admin\UserGenerate;
|
||||||
use App\Http\Requests\Admin\UserSendMail;
|
use App\Http\Requests\Admin\UserSendMail;
|
||||||
use App\Http\Requests\Admin\UserUpdate;
|
use App\Http\Requests\Admin\UserUpdate;
|
||||||
use App\Jobs\SendEmailJob;
|
use App\Jobs\SendEmailJob;
|
||||||
|
use App\Models\Plan;
|
||||||
|
use App\Models\User;
|
||||||
use App\Services\AuthService;
|
use App\Services\AuthService;
|
||||||
use App\Services\UserService;
|
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\Plan;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class UserController extends Controller
|
class UserController extends Controller
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client;
|
namespace App\Http\Controllers\V1\Client;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
@ -39,15 +39,15 @@ class AppController extends Controller
|
|||||||
'chacha20-ietf-poly1305'
|
'chacha20-ietf-poly1305'
|
||||||
])
|
])
|
||||||
) {
|
) {
|
||||||
array_push($proxy, Protocols\Clash::buildShadowsocks($user['uuid'], $item));
|
array_push($proxy, \App\Http\Controllers\V1\Client\Protocols\Clash::buildShadowsocks($user['uuid'], $item));
|
||||||
array_push($proxies, $item['name']);
|
array_push($proxies, $item['name']);
|
||||||
}
|
}
|
||||||
if ($item['type'] === 'vmess') {
|
if ($item['type'] === 'vmess') {
|
||||||
array_push($proxy, Protocols\Clash::buildVmess($user['uuid'], $item));
|
array_push($proxy, \App\Http\Controllers\V1\Client\Protocols\Clash::buildVmess($user['uuid'], $item));
|
||||||
array_push($proxies, $item['name']);
|
array_push($proxies, $item['name']);
|
||||||
}
|
}
|
||||||
if ($item['type'] === 'trojan') {
|
if ($item['type'] === 'trojan') {
|
||||||
array_push($proxy, Protocols\Clash::buildTrojan($user['uuid'], $item));
|
array_push($proxy, \App\Http\Controllers\V1\Client\Protocols\Clash::buildTrojan($user['uuid'], $item));
|
||||||
array_push($proxies, $item['name']);
|
array_push($proxies, $item['name']);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client;
|
namespace App\Http\Controllers\V1\Client;
|
||||||
|
|
||||||
use App\Http\Controllers\Client\Protocols\General;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Http\Controllers\V1\Client\Protocols\General;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
|
use App\Services\UserService;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Services\UserService;
|
|
||||||
|
|
||||||
class ClientController extends Controller
|
class ClientController extends Controller
|
||||||
{
|
{
|
@ -1,8 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
use App\Utils\Dict;
|
|
||||||
use phpDocumentor\Reflection\Types\Self_;
|
use phpDocumentor\Reflection\Types\Self_;
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
|
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
@ -1,8 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
use App\Utils\Helper;
|
|
||||||
|
|
||||||
class Loon
|
class Loon
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
|
|
||||||
class Passwall
|
class Passwall
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
|
|
||||||
class QuantumultX
|
class QuantumultX
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
|
|
||||||
class SSRPlus
|
class SSRPlus
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
class SagerNet
|
class SagerNet
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
class Shadowsocks
|
class Shadowsocks
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
|
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||||
|
|
||||||
|
|
||||||
class V2rayNG
|
class V2rayNG
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Guest;
|
namespace App\Http\Controllers\V1\Guest;
|
||||||
|
|
||||||
use App\Utils\Dict;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Utils\Dict;
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
|
|
||||||
class CommController extends Controller
|
class CommController extends Controller
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Guest;
|
namespace App\Http\Controllers\V1\Guest;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Order;
|
use App\Models\Order;
|
||||||
use App\Services\OrderService;
|
use App\Services\OrderService;
|
||||||
use App\Services\PaymentService;
|
use App\Services\PaymentService;
|
||||||
use App\Services\TelegramService;
|
use App\Services\TelegramService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
|
|
||||||
class PaymentController extends Controller
|
class PaymentController extends Controller
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Guest;
|
namespace App\Http\Controllers\V1\Guest;
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Plan;
|
use App\Models\Plan;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class PlanController extends Controller
|
class PlanController extends Controller
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Guest;
|
namespace App\Http\Controllers\V1\Guest;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Services\TelegramService;
|
use App\Services\TelegramService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
|
|
||||||
class TelegramController extends Controller
|
class TelegramController extends Controller
|
||||||
{
|
{
|
@ -1,21 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Passport;
|
namespace App\Http\Controllers\V1\Passport;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Passport\AuthRegister;
|
|
||||||
use App\Http\Requests\Passport\AuthForget;
|
use App\Http\Requests\Passport\AuthForget;
|
||||||
use App\Http\Requests\Passport\AuthLogin;
|
use App\Http\Requests\Passport\AuthLogin;
|
||||||
|
use App\Http\Requests\Passport\AuthRegister;
|
||||||
use App\Jobs\SendEmailJob;
|
use App\Jobs\SendEmailJob;
|
||||||
use App\Services\AuthService;
|
use App\Models\InviteCode;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use Illuminate\Support\Facades\Cache;
|
|
||||||
use App\Models\Plan;
|
use App\Models\Plan;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Models\InviteCode;
|
use App\Services\AuthService;
|
||||||
use App\Utils\Helper;
|
|
||||||
use App\Utils\Dict;
|
|
||||||
use App\Utils\CacheKey;
|
use App\Utils\CacheKey;
|
||||||
|
use App\Utils\Dict;
|
||||||
|
use App\Utils\Helper;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Cache;
|
||||||
use ReCaptcha\ReCaptcha;
|
use ReCaptcha\ReCaptcha;
|
||||||
|
|
||||||
class AuthController extends Controller
|
class AuthController extends Controller
|
@ -1,18 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Passport;
|
namespace App\Http\Controllers\V1\Passport;
|
||||||
|
|
||||||
use App\Http\Requests\Passport\CommSendEmailVerify;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use Illuminate\Http\Exceptions\HttpResponseException;
|
use App\Http\Requests\Passport\CommSendEmailVerify;
|
||||||
use Illuminate\Support\Facades\Mail;
|
|
||||||
use App\Utils\Helper;
|
|
||||||
use Illuminate\Support\Facades\Cache;
|
|
||||||
use App\Jobs\SendEmailJob;
|
use App\Jobs\SendEmailJob;
|
||||||
use App\Models\InviteCode;
|
use App\Models\InviteCode;
|
||||||
use App\Utils\Dict;
|
|
||||||
use App\Utils\CacheKey;
|
use App\Utils\CacheKey;
|
||||||
|
use App\Utils\Dict;
|
||||||
|
use Illuminate\Http\Exceptions\HttpResponseException;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Cache;
|
||||||
|
use Illuminate\Support\Facades\Mail;
|
||||||
use ReCaptcha\ReCaptcha;
|
use ReCaptcha\ReCaptcha;
|
||||||
|
|
||||||
class CommController extends Controller
|
class CommController extends Controller
|
@ -1,19 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Server;
|
namespace App\Http\Controllers\V1\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\ServerVmess;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use App\Services\StatisticalService;
|
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use App\Utils\CacheKey;
|
use App\Utils\CacheKey;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\ServerVmess;
|
|
||||||
use App\Models\ServerLog;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Illuminate\Support\Facades\Cache;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* V2ray Aurora
|
* V2ray Aurora
|
@ -1,14 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Server;
|
namespace App\Http\Controllers\V1\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\ServerShadowsocks;
|
use App\Models\ServerShadowsocks;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use App\Services\StatisticalService;
|
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use App\Utils\CacheKey;
|
use App\Utils\CacheKey;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
|
|
||||||
/*
|
/*
|
@ -1,19 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Server;
|
namespace App\Http\Controllers\V1\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\ServerTrojan;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use App\Services\StatisticalService;
|
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use App\Utils\CacheKey;
|
use App\Utils\CacheKey;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\ServerTrojan;
|
|
||||||
use App\Models\ServerLog;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Illuminate\Support\Facades\Cache;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Tidal Lab Trojan
|
* Tidal Lab Trojan
|
@ -1,17 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Server;
|
namespace App\Http\Controllers\V1\Server;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use App\Services\StatisticalService;
|
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use App\Utils\CacheKey;
|
use App\Utils\CacheKey;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\ServerShadowsocks;
|
|
||||||
use App\Models\ServerVmess;
|
|
||||||
use App\Models\ServerTrojan;
|
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
|
|
||||||
class UniProxyController extends Controller
|
class UniProxyController extends Controller
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Staff;
|
namespace App\Http\Controllers\V1\Staff;
|
||||||
|
|
||||||
use App\Http\Requests\Admin\NoticeSave;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Http\Requests\Admin\NoticeSave;
|
||||||
use App\Models\Notice;
|
use App\Models\Notice;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
|
|
||||||
class NoticeController extends Controller
|
class NoticeController extends Controller
|
@ -1,15 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Staff;
|
namespace App\Http\Controllers\V1\Staff;
|
||||||
|
|
||||||
use App\Http\Requests\Admin\PlanSave;
|
|
||||||
use App\Http\Requests\Admin\PlanSort;
|
|
||||||
use App\Http\Requests\Admin\PlanUpdate;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Plan;
|
use App\Models\Plan;
|
||||||
use App\Models\Order;
|
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class PlanController extends Controller
|
class PlanController extends Controller
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Staff;
|
namespace App\Http\Controllers\V1\Staff;
|
||||||
|
|
||||||
use App\Services\TicketService;
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Ticket;
|
use App\Models\Ticket;
|
||||||
use App\Models\TicketMessage;
|
use App\Models\TicketMessage;
|
||||||
|
use App\Services\TicketService;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class TicketController extends Controller
|
class TicketController extends Controller
|
||||||
{
|
{
|
@ -1,14 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\Staff;
|
namespace App\Http\Controllers\V1\Staff;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\Admin\UserSendMail;
|
use App\Http\Requests\Admin\UserSendMail;
|
||||||
use App\Http\Requests\Staff\UserUpdate;
|
use App\Http\Requests\Staff\UserUpdate;
|
||||||
use App\Jobs\SendEmailJob;
|
use App\Jobs\SendEmailJob;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\Plan;
|
use App\Models\Plan;
|
||||||
|
use App\Models\User;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class UserController extends Controller
|
class UserController extends Controller
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Payment;
|
use App\Models\Payment;
|
||||||
use App\Utils\Dict;
|
use App\Utils\Dict;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
|
|
||||||
class CommController extends Controller
|
class CommController extends Controller
|
||||||
{
|
{
|
@ -1,11 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Services\CouponService;
|
use App\Services\CouponService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Models\Coupon;
|
|
||||||
|
|
||||||
class CouponController extends Controller
|
class CouponController extends Controller
|
||||||
{
|
{
|
@ -1,14 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\CommissionLog;
|
use App\Models\CommissionLog;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\Order;
|
|
||||||
use App\Models\InviteCode;
|
use App\Models\InviteCode;
|
||||||
|
use App\Models\Order;
|
||||||
|
use App\Models\User;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class InviteController extends Controller
|
class InviteController extends Controller
|
||||||
{
|
{
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Knowledge;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Models\Knowledge;
|
|
||||||
|
|
||||||
class KnowledgeController extends Controller
|
class KnowledgeController extends Controller
|
||||||
{
|
{
|
@ -1,11 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Models\Notice;
|
use App\Models\Notice;
|
||||||
use App\Utils\Helper;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class NoticeController extends Controller
|
class NoticeController extends Controller
|
||||||
{
|
{
|
@ -1,29 +1,28 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\User\OrderSave;
|
use App\Http\Requests\User\OrderSave;
|
||||||
use App\Models\CommissionLog;
|
use App\Models\Order;
|
||||||
use App\Models\Payment;
|
use App\Models\Payment;
|
||||||
|
use App\Models\Plan;
|
||||||
|
use App\Models\User;
|
||||||
use App\Services\CouponService;
|
use App\Services\CouponService;
|
||||||
use App\Services\OrderService;
|
use App\Services\OrderService;
|
||||||
use App\Services\PaymentService;
|
use App\Services\PaymentService;
|
||||||
use App\Services\PlanService;
|
use App\Services\PlanService;
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
|
use App\Utils\Helper;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use App\Models\Order;
|
|
||||||
use App\Models\Plan;
|
|
||||||
use App\Models\User;
|
|
||||||
use App\Utils\Helper;
|
|
||||||
use Omnipay\Omnipay;
|
|
||||||
use Stripe\Stripe;
|
|
||||||
use Stripe\Source;
|
|
||||||
use Library\BitpayX;
|
use Library\BitpayX;
|
||||||
use Library\MGate;
|
|
||||||
use Library\Epay;
|
use Library\Epay;
|
||||||
|
use Library\MGate;
|
||||||
|
use Omnipay\Omnipay;
|
||||||
|
use Stripe\Source;
|
||||||
|
use Stripe\Stripe;
|
||||||
|
|
||||||
class OrderController extends Controller
|
class OrderController extends Controller
|
||||||
{
|
{
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Plan;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Services\PlanService;
|
use App\Services\PlanService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Models\Plan;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class PlanController extends Controller
|
class PlanController extends Controller
|
@ -1,18 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\User;
|
||||||
use App\Services\ServerService;
|
use App\Services\ServerService;
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use App\Utils\CacheKey;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use App\Models\ServerVmess;
|
|
||||||
use App\Models\ServerLog;
|
|
||||||
use App\Models\User;
|
|
||||||
|
|
||||||
use App\Utils\Helper;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class ServerController extends Controller
|
class ServerController extends Controller
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\StatUser;
|
use App\Models\StatUser;
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
@ -1,18 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\User\TicketSave;
|
use App\Http\Requests\User\TicketSave;
|
||||||
use App\Http\Requests\User\TicketWithdraw;
|
use App\Http\Requests\User\TicketWithdraw;
|
||||||
use App\Jobs\SendTelegramJob;
|
use App\Models\Ticket;
|
||||||
|
use App\Models\TicketMessage;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Services\TelegramService;
|
use App\Services\TelegramService;
|
||||||
use App\Services\TicketService;
|
use App\Services\TicketService;
|
||||||
use App\Utils\Dict;
|
use App\Utils\Dict;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Models\Ticket;
|
|
||||||
use App\Models\TicketMessage;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class TicketController extends Controller
|
class TicketController extends Controller
|
@ -1,20 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Http\Controllers\User;
|
namespace App\Http\Controllers\V1\User;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Http\Requests\User\UserChangePassword;
|
||||||
use App\Http\Requests\User\UserTransfer;
|
use App\Http\Requests\User\UserTransfer;
|
||||||
use App\Http\Requests\User\UserUpdate;
|
use App\Http\Requests\User\UserUpdate;
|
||||||
use App\Http\Requests\User\UserChangePassword;
|
use App\Models\Order;
|
||||||
|
use App\Models\Plan;
|
||||||
|
use App\Models\Ticket;
|
||||||
|
use App\Models\User;
|
||||||
use App\Services\AuthService;
|
use App\Services\AuthService;
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use App\Utils\CacheKey;
|
use App\Utils\CacheKey;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Models\User;
|
|
||||||
use App\Models\Plan;
|
|
||||||
use App\Models\Ticket;
|
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use App\Models\Order;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
|
|
||||||
class UserController extends Controller
|
class UserController extends Controller
|
@ -1,144 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace App\Http\Routes;
|
|
||||||
|
|
||||||
use Illuminate\Contracts\Routing\Registrar;
|
|
||||||
|
|
||||||
class AdminRoute
|
|
||||||
{
|
|
||||||
public function map(Registrar $router)
|
|
||||||
{
|
|
||||||
$router->group([
|
|
||||||
'prefix' => config('v2board.secure_path', config('v2board.frontend_admin_path', hash('crc32b', config('app.key')))),
|
|
||||||
'middleware' => ['admin', 'log']
|
|
||||||
], function ($router) {
|
|
||||||
// Config
|
|
||||||
$router->get ('/config/fetch', 'Admin\\ConfigController@fetch');
|
|
||||||
$router->post('/config/save', 'Admin\\ConfigController@save');
|
|
||||||
$router->get ('/config/getEmailTemplate', 'Admin\\ConfigController@getEmailTemplate');
|
|
||||||
$router->get ('/config/getThemeTemplate', 'Admin\\ConfigController@getThemeTemplate');
|
|
||||||
$router->post('/config/setTelegramWebhook', 'Admin\\ConfigController@setTelegramWebhook');
|
|
||||||
$router->post('/config/testSendMail', 'Admin\\ConfigController@testSendMail');
|
|
||||||
// Plan
|
|
||||||
$router->get ('/plan/fetch', 'Admin\\PlanController@fetch');
|
|
||||||
$router->post('/plan/save', 'Admin\\PlanController@save');
|
|
||||||
$router->post('/plan/drop', 'Admin\\PlanController@drop');
|
|
||||||
$router->post('/plan/update', 'Admin\\PlanController@update');
|
|
||||||
$router->post('/plan/sort', 'Admin\\PlanController@sort');
|
|
||||||
// Server
|
|
||||||
$router->get ('/server/group/fetch', 'Admin\\Server\\GroupController@fetch');
|
|
||||||
$router->post('/server/group/save', 'Admin\\Server\\GroupController@save');
|
|
||||||
$router->post('/server/group/drop', 'Admin\\Server\\GroupController@drop');
|
|
||||||
$router->get ('/server/route/fetch', 'Admin\\Server\\RouteController@fetch');
|
|
||||||
$router->post('/server/route/save', 'Admin\\Server\\RouteController@save');
|
|
||||||
$router->post('/server/route/drop', 'Admin\\Server\\RouteController@drop');
|
|
||||||
$router->get ('/server/manage/getNodes', 'Admin\\Server\\ManageController@getNodes');
|
|
||||||
$router->post('/server/manage/sort', 'Admin\\Server\\ManageController@sort');
|
|
||||||
$router->group([
|
|
||||||
'prefix' => 'server/trojan'
|
|
||||||
], function ($router) {
|
|
||||||
$router->get ('fetch', 'Admin\\Server\\TrojanController@fetch');
|
|
||||||
$router->post('save', 'Admin\\Server\\TrojanController@save');
|
|
||||||
$router->post('drop', 'Admin\\Server\\TrojanController@drop');
|
|
||||||
$router->post('update', 'Admin\\Server\\TrojanController@update');
|
|
||||||
$router->post('copy', 'Admin\\Server\\TrojanController@copy');
|
|
||||||
$router->post('sort', 'Admin\\Server\\TrojanController@sort');
|
|
||||||
$router->post('viewConfig', 'Admin\\Server\\TrojanController@viewConfig');
|
|
||||||
});
|
|
||||||
$router->group([
|
|
||||||
'prefix' => 'server/vmess'
|
|
||||||
], function ($router) {
|
|
||||||
$router->get ('fetch', 'Admin\\Server\\VmessController@fetch');
|
|
||||||
$router->post('save', 'Admin\\Server\\VmessController@save');
|
|
||||||
$router->post('drop', 'Admin\\Server\\VmessController@drop');
|
|
||||||
$router->post('update', 'Admin\\Server\\VmessController@update');
|
|
||||||
$router->post('copy', 'Admin\\Server\\VmessController@copy');
|
|
||||||
$router->post('sort', 'Admin\\Server\\VmessController@sort');
|
|
||||||
});
|
|
||||||
$router->group([
|
|
||||||
'prefix' => 'server/shadowsocks'
|
|
||||||
], function ($router) {
|
|
||||||
$router->get ('fetch', 'Admin\\Server\\ShadowsocksController@fetch');
|
|
||||||
$router->post('save', 'Admin\\Server\\ShadowsocksController@save');
|
|
||||||
$router->post('drop', 'Admin\\Server\\ShadowsocksController@drop');
|
|
||||||
$router->post('update', 'Admin\\Server\\ShadowsocksController@update');
|
|
||||||
$router->post('copy', 'Admin\\Server\\ShadowsocksController@copy');
|
|
||||||
$router->post('sort', 'Admin\\Server\\ShadowsocksController@sort');
|
|
||||||
});
|
|
||||||
$router->group([
|
|
||||||
'prefix' => 'server/hysteria'
|
|
||||||
], function ($router) {
|
|
||||||
$router->get ('fetch', 'Admin\\Server\\HysteriaController@fetch');
|
|
||||||
$router->post('save', 'Admin\\Server\\HysteriaController@save');
|
|
||||||
$router->post('drop', 'Admin\\Server\\HysteriaController@drop');
|
|
||||||
$router->post('update', 'Admin\\Server\\HysteriaController@update');
|
|
||||||
$router->post('copy', 'Admin\\Server\\HysteriaController@copy');
|
|
||||||
$router->post('sort', 'Admin\\Server\\HysteriaController@sort');
|
|
||||||
});
|
|
||||||
// Order
|
|
||||||
$router->get ('/order/fetch', 'Admin\\OrderController@fetch');
|
|
||||||
$router->post('/order/update', 'Admin\\OrderController@update');
|
|
||||||
$router->post('/order/assign', 'Admin\\OrderController@assign');
|
|
||||||
$router->post('/order/paid', 'Admin\\OrderController@paid');
|
|
||||||
$router->post('/order/cancel', 'Admin\\OrderController@cancel');
|
|
||||||
$router->post('/order/detail', 'Admin\\OrderController@detail');
|
|
||||||
// User
|
|
||||||
$router->get ('/user/fetch', 'Admin\\UserController@fetch');
|
|
||||||
$router->post('/user/update', 'Admin\\UserController@update');
|
|
||||||
$router->get ('/user/getUserInfoById', 'Admin\\UserController@getUserInfoById');
|
|
||||||
$router->post('/user/generate', 'Admin\\UserController@generate');
|
|
||||||
$router->post('/user/dumpCSV', 'Admin\\UserController@dumpCSV');
|
|
||||||
$router->post('/user/sendMail', 'Admin\\UserController@sendMail');
|
|
||||||
$router->post('/user/ban', 'Admin\\UserController@ban');
|
|
||||||
$router->post('/user/resetSecret', 'Admin\\UserController@resetSecret');
|
|
||||||
$router->post('/user/setInviteUser', 'Admin\\UserController@setInviteUser');
|
|
||||||
// Stat
|
|
||||||
$router->get ('/stat/getStat', 'Admin\\StatController@getStat');
|
|
||||||
$router->get ('/stat/getOverride', 'Admin\\StatController@getOverride');
|
|
||||||
$router->get ('/stat/getServerLastRank', 'Admin\\StatController@getServerLastRank');
|
|
||||||
$router->get ('/stat/getOrder', 'Admin\\StatController@getOrder');
|
|
||||||
$router->get ('/stat/getStatUser', 'Admin\\StatController@getStatUser');
|
|
||||||
$router->get ('/stat/getRanking', 'Admin\\StatController@getRanking');
|
|
||||||
$router->get ('/stat/getStatRecord', 'Admin\\StatController@getStatRecord');
|
|
||||||
// Notice
|
|
||||||
$router->get ('/notice/fetch', 'Admin\\NoticeController@fetch');
|
|
||||||
$router->post('/notice/save', 'Admin\\NoticeController@save');
|
|
||||||
$router->post('/notice/update', 'Admin\\NoticeController@update');
|
|
||||||
$router->post('/notice/drop', 'Admin\\NoticeController@drop');
|
|
||||||
$router->post('/notice/show', 'Admin\\NoticeController@show');
|
|
||||||
// Ticket
|
|
||||||
$router->get ('/ticket/fetch', 'Admin\\TicketController@fetch');
|
|
||||||
$router->post('/ticket/reply', 'Admin\\TicketController@reply');
|
|
||||||
$router->post('/ticket/close', 'Admin\\TicketController@close');
|
|
||||||
// Coupon
|
|
||||||
$router->get ('/coupon/fetch', 'Admin\\CouponController@fetch');
|
|
||||||
$router->post('/coupon/generate', 'Admin\\CouponController@generate');
|
|
||||||
$router->post('/coupon/drop', 'Admin\\CouponController@drop');
|
|
||||||
$router->post('/coupon/show', 'Admin\\CouponController@show');
|
|
||||||
// Knowledge
|
|
||||||
$router->get ('/knowledge/fetch', 'Admin\\KnowledgeController@fetch');
|
|
||||||
$router->get ('/knowledge/getCategory', 'Admin\\KnowledgeController@getCategory');
|
|
||||||
$router->post('/knowledge/save', 'Admin\\KnowledgeController@save');
|
|
||||||
$router->post('/knowledge/show', 'Admin\\KnowledgeController@show');
|
|
||||||
$router->post('/knowledge/drop', 'Admin\\KnowledgeController@drop');
|
|
||||||
$router->post('/knowledge/sort', 'Admin\\KnowledgeController@sort');
|
|
||||||
// Payment
|
|
||||||
$router->get ('/payment/fetch', 'Admin\\PaymentController@fetch');
|
|
||||||
$router->get ('/payment/getPaymentMethods', 'Admin\\PaymentController@getPaymentMethods');
|
|
||||||
$router->post('/payment/getPaymentForm', 'Admin\\PaymentController@getPaymentForm');
|
|
||||||
$router->post('/payment/save', 'Admin\\PaymentController@save');
|
|
||||||
$router->post('/payment/drop', 'Admin\\PaymentController@drop');
|
|
||||||
$router->post('/payment/show', 'Admin\\PaymentController@show');
|
|
||||||
$router->post('/payment/sort', 'Admin\\PaymentController@sort');
|
|
||||||
// System
|
|
||||||
$router->get ('/system/getSystemStatus', 'Admin\\SystemController@getSystemStatus');
|
|
||||||
$router->get ('/system/getQueueStats', 'Admin\\SystemController@getQueueStats');
|
|
||||||
$router->get ('/system/getQueueWorkload', 'Admin\\SystemController@getQueueWorkload');
|
|
||||||
$router->get ('/system/getQueueMasters', '\\Laravel\\Horizon\\Http\\Controllers\\MasterSupervisorController@index');
|
|
||||||
$router->get ('/system/getSystemLog', 'Admin\\SystemController@getSystemLog');
|
|
||||||
// Theme
|
|
||||||
$router->get ('/theme/getThemes', 'Admin\\ThemeController@getThemes');
|
|
||||||
$router->post('/theme/saveThemeConfig', 'Admin\\ThemeController@saveThemeConfig');
|
|
||||||
$router->post('/theme/getThemeConfig', 'Admin\\ThemeController@getThemeConfig');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace App\Http\Routes;
|
|
||||||
|
|
||||||
use Illuminate\Contracts\Routing\Registrar;
|
|
||||||
|
|
||||||
class PassportRoute
|
|
||||||
{
|
|
||||||
public function map(Registrar $router)
|
|
||||||
{
|
|
||||||
$router->group([
|
|
||||||
'prefix' => 'passport'
|
|
||||||
], function ($router) {
|
|
||||||
// Auth
|
|
||||||
$router->post('/auth/register', 'Passport\\AuthController@register');
|
|
||||||
$router->post('/auth/login', 'Passport\\AuthController@login');
|
|
||||||
$router->get ('/auth/token2Login', 'Passport\\AuthController@token2Login');
|
|
||||||
$router->post('/auth/forget', 'Passport\\AuthController@forget');
|
|
||||||
$router->post('/auth/getQuickLoginUrl', 'Passport\\AuthController@getQuickLoginUrl');
|
|
||||||
$router->post('/auth/loginWithMailLink', 'Passport\\AuthController@loginWithMailLink');
|
|
||||||
// Comm
|
|
||||||
$router->post('/comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify');
|
|
||||||
$router->post('/comm/pv', 'Passport\\CommController@pv');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace App\Http\Routes;
|
|
||||||
|
|
||||||
use Illuminate\Contracts\Routing\Registrar;
|
|
||||||
|
|
||||||
class StaffRoute
|
|
||||||
{
|
|
||||||
public function map(Registrar $router)
|
|
||||||
{
|
|
||||||
$router->group([
|
|
||||||
'prefix' => 'staff',
|
|
||||||
'middleware' => 'staff'
|
|
||||||
], function ($router) {
|
|
||||||
// Ticket
|
|
||||||
$router->get ('/ticket/fetch', 'Staff\\TicketController@fetch');
|
|
||||||
$router->post('/ticket/reply', 'Staff\\TicketController@reply');
|
|
||||||
$router->post('/ticket/close', 'Staff\\TicketController@close');
|
|
||||||
// User
|
|
||||||
$router->post('/user/update', 'Staff\\UserController@update');
|
|
||||||
$router->get ('/user/getUserInfoById', 'Staff\\UserController@getUserInfoById');
|
|
||||||
$router->post('/user/sendMail', 'Staff\\UserController@sendMail');
|
|
||||||
$router->post('/user/ban', 'Staff\\UserController@ban');
|
|
||||||
// Plan
|
|
||||||
$router->get ('/plan/fetch', 'Staff\\PlanController@fetch');
|
|
||||||
// Notice
|
|
||||||
$router->get ('/notice/fetch', 'Admin\\NoticeController@fetch');
|
|
||||||
$router->post('/notice/save', 'Admin\\NoticeController@save');
|
|
||||||
$router->post('/notice/update', 'Admin\\NoticeController@update');
|
|
||||||
$router->post('/notice/drop', 'Admin\\NoticeController@drop');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,64 +0,0 @@
|
|||||||
<?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
|
|
||||||
$router->get ('/resetSecurity', 'User\\UserController@resetSecurity');
|
|
||||||
$router->get ('/info', 'User\\UserController@info');
|
|
||||||
$router->post('/changePassword', 'User\\UserController@changePassword');
|
|
||||||
$router->post('/update', 'User\\UserController@update');
|
|
||||||
$router->get ('/getSubscribe', 'User\\UserController@getSubscribe');
|
|
||||||
$router->get ('/getStat', 'User\\UserController@getStat');
|
|
||||||
$router->get ('/checkLogin', 'User\\UserController@checkLogin');
|
|
||||||
$router->post('/transfer', 'User\\UserController@transfer');
|
|
||||||
$router->post('/getQuickLoginUrl', 'User\\UserController@getQuickLoginUrl');
|
|
||||||
$router->get ('/getActiveSession', 'User\\UserController@getActiveSession');
|
|
||||||
$router->post('/removeActiveSession', 'User\\UserController@removeActiveSession');
|
|
||||||
// Order
|
|
||||||
$router->post('/order/save', 'User\\OrderController@save');
|
|
||||||
$router->post('/order/checkout', 'User\\OrderController@checkout');
|
|
||||||
$router->get ('/order/check', 'User\\OrderController@check');
|
|
||||||
$router->get ('/order/detail', 'User\\OrderController@detail');
|
|
||||||
$router->get ('/order/fetch', 'User\\OrderController@fetch');
|
|
||||||
$router->get ('/order/getPaymentMethod', 'User\\OrderController@getPaymentMethod');
|
|
||||||
$router->post('/order/cancel', 'User\\OrderController@cancel');
|
|
||||||
// Plan
|
|
||||||
$router->get ('/plan/fetch', 'User\\PlanController@fetch');
|
|
||||||
// Invite
|
|
||||||
$router->get ('/invite/save', 'User\\InviteController@save');
|
|
||||||
$router->get ('/invite/fetch', 'User\\InviteController@fetch');
|
|
||||||
$router->get ('/invite/details', 'User\\InviteController@details');
|
|
||||||
// Notice
|
|
||||||
$router->get ('/notice/fetch', 'User\\NoticeController@fetch');
|
|
||||||
// Ticket
|
|
||||||
$router->post('/ticket/reply', 'User\\TicketController@reply');
|
|
||||||
$router->post('/ticket/close', 'User\\TicketController@close');
|
|
||||||
$router->post('/ticket/save', 'User\\TicketController@save');
|
|
||||||
$router->get ('/ticket/fetch', 'User\\TicketController@fetch');
|
|
||||||
$router->post('/ticket/withdraw', 'User\\TicketController@withdraw');
|
|
||||||
// Server
|
|
||||||
$router->get ('/server/fetch', 'User\\ServerController@fetch');
|
|
||||||
// Coupon
|
|
||||||
$router->post('/coupon/check', 'User\\CouponController@check');
|
|
||||||
// Telegram
|
|
||||||
$router->get ('/telegram/getBotInfo', 'User\\TelegramController@getBotInfo');
|
|
||||||
// Comm
|
|
||||||
$router->get ('/comm/config', 'User\\CommController@config');
|
|
||||||
$router->Post('/comm/getStripePublicKey', 'User\\CommController@getStripePublicKey');
|
|
||||||
// Knowledge
|
|
||||||
$router->get ('/knowledge/fetch', 'User\\KnowledgeController@fetch');
|
|
||||||
$router->get ('/knowledge/getCategory', 'User\\KnowledgeController@getCategory');
|
|
||||||
// Stat
|
|
||||||
$router->get ('/stat/getTrafficLog', 'User\\StatController@getTrafficLog');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
144
app/Http/Routes/V1/AdminRoute.php
Normal file
144
app/Http/Routes/V1/AdminRoute.php
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
<?php
|
||||||
|
namespace App\Http\Routes\V1;
|
||||||
|
|
||||||
|
use Illuminate\Contracts\Routing\Registrar;
|
||||||
|
|
||||||
|
class AdminRoute
|
||||||
|
{
|
||||||
|
public function map(Registrar $router)
|
||||||
|
{
|
||||||
|
$router->group([
|
||||||
|
'prefix' => config('v2board.secure_path', config('v2board.frontend_admin_path', hash('crc32b', config('app.key')))),
|
||||||
|
'middleware' => ['admin', 'log'],
|
||||||
|
], function ($router) {
|
||||||
|
// Config
|
||||||
|
$router->get ('/config/fetch', 'V1\\Admin\\ConfigController@fetch');
|
||||||
|
$router->post('/config/save', 'V1\\Admin\\ConfigController@save');
|
||||||
|
$router->get ('/config/getEmailTemplate', 'V1\\Admin\\ConfigController@getEmailTemplate');
|
||||||
|
$router->get ('/config/getThemeTemplate', 'V1\\Admin\\ConfigController@getThemeTemplate');
|
||||||
|
$router->post('/config/setTelegramWebhook', 'V1\\Admin\\ConfigController@setTelegramWebhook');
|
||||||
|
$router->post('/config/testSendMail', 'V1\\Admin\\ConfigController@testSendMail');
|
||||||
|
// Plan
|
||||||
|
$router->get ('/plan/fetch', 'V1\\Admin\\PlanController@fetch');
|
||||||
|
$router->post('/plan/save', 'V1\\Admin\\PlanController@save');
|
||||||
|
$router->post('/plan/drop', 'V1\\Admin\\PlanController@drop');
|
||||||
|
$router->post('/plan/update', 'V1\\Admin\\PlanController@update');
|
||||||
|
$router->post('/plan/sort', 'V1\\Admin\\PlanController@sort');
|
||||||
|
// Server
|
||||||
|
$router->get ('/server/group/fetch', 'V1\\Admin\\Server\\GroupController@fetch');
|
||||||
|
$router->post('/server/group/save', 'V1\\Admin\\Server\\GroupController@save');
|
||||||
|
$router->post('/server/group/drop', 'V1\\Admin\\Server\\GroupController@drop');
|
||||||
|
$router->get ('/server/route/fetch', 'V1\\Admin\\Server\\RouteController@fetch');
|
||||||
|
$router->post('/server/route/save', 'V1\\Admin\\Server\\RouteController@save');
|
||||||
|
$router->post('/server/route/drop', 'V1\\Admin\\Server\\RouteController@drop');
|
||||||
|
$router->get ('/server/manage/getNodes', 'V1\\Admin\\Server\\ManageController@getNodes');
|
||||||
|
$router->post('/server/manage/sort', 'V1\\Admin\\Server\\ManageController@sort');
|
||||||
|
$router->group([
|
||||||
|
'prefix' => 'server/trojan'
|
||||||
|
], function ($router) {
|
||||||
|
$router->get ('fetch', 'V1\\Admin\\Server\\TrojanController@fetch');
|
||||||
|
$router->post('save', 'V1\\Admin\\Server\\TrojanController@save');
|
||||||
|
$router->post('drop', 'V1\\Admin\\Server\\TrojanController@drop');
|
||||||
|
$router->post('update', 'V1\\Admin\\Server\\TrojanController@update');
|
||||||
|
$router->post('copy', 'V1\\Admin\\Server\\TrojanController@copy');
|
||||||
|
$router->post('sort', 'V1\\Admin\\Server\\TrojanController@sort');
|
||||||
|
$router->post('viewConfig', 'V1\\Admin\\Server\\TrojanController@viewConfig');
|
||||||
|
});
|
||||||
|
$router->group([
|
||||||
|
'prefix' => 'server/vmess'
|
||||||
|
], function ($router) {
|
||||||
|
$router->get ('fetch', 'V1\\Admin\\Server\\VmessController@fetch');
|
||||||
|
$router->post('save', 'V1\\Admin\\Server\\VmessController@save');
|
||||||
|
$router->post('drop', 'V1\\Admin\\Server\\VmessController@drop');
|
||||||
|
$router->post('update', 'V1\\Admin\\Server\\VmessController@update');
|
||||||
|
$router->post('copy', 'V1\\Admin\\Server\\VmessController@copy');
|
||||||
|
$router->post('sort', 'V1\\Admin\\Server\\VmessController@sort');
|
||||||
|
});
|
||||||
|
$router->group([
|
||||||
|
'prefix' => 'server/shadowsocks'
|
||||||
|
], function ($router) {
|
||||||
|
$router->get ('fetch', 'V1\\Admin\\Server\\ShadowsocksController@fetch');
|
||||||
|
$router->post('save', 'V1\\Admin\\Server\\ShadowsocksController@save');
|
||||||
|
$router->post('drop', 'V1\\Admin\\Server\\ShadowsocksController@drop');
|
||||||
|
$router->post('update', 'V1\\Admin\\Server\\ShadowsocksController@update');
|
||||||
|
$router->post('copy', 'V1\\Admin\\Server\\ShadowsocksController@copy');
|
||||||
|
$router->post('sort', 'V1\\Admin\\Server\\ShadowsocksController@sort');
|
||||||
|
});
|
||||||
|
$router->group([
|
||||||
|
'prefix' => 'server/hysteria'
|
||||||
|
], function ($router) {
|
||||||
|
$router->get ('fetch', 'V1\\Admin\\Server\\HysteriaController@fetch');
|
||||||
|
$router->post('save', 'V1\\Admin\\Server\\HysteriaController@save');
|
||||||
|
$router->post('drop', 'V1\\Admin\\Server\\HysteriaController@drop');
|
||||||
|
$router->post('update', 'V1\\Admin\\Server\\HysteriaController@update');
|
||||||
|
$router->post('copy', 'V1\\Admin\\Server\\HysteriaController@copy');
|
||||||
|
$router->post('sort', 'V1\\Admin\\Server\\HysteriaController@sort');
|
||||||
|
});
|
||||||
|
// Order
|
||||||
|
$router->get ('/order/fetch', 'V1\\Admin\\OrderController@fetch');
|
||||||
|
$router->post('/order/update', 'V1\\Admin\\OrderController@update');
|
||||||
|
$router->post('/order/assign', 'V1\\Admin\\OrderController@assign');
|
||||||
|
$router->post('/order/paid', 'V1\\Admin\\OrderController@paid');
|
||||||
|
$router->post('/order/cancel', 'V1\\Admin\\OrderController@cancel');
|
||||||
|
$router->post('/order/detail', 'V1\\Admin\\OrderController@detail');
|
||||||
|
// User
|
||||||
|
$router->get ('/user/fetch', 'V1\\Admin\\UserController@fetch');
|
||||||
|
$router->post('/user/update', 'V1\\Admin\\UserController@update');
|
||||||
|
$router->get ('/user/getUserInfoById', 'V1\\Admin\\UserController@getUserInfoById');
|
||||||
|
$router->post('/user/generate', 'V1\\Admin\\UserController@generate');
|
||||||
|
$router->post('/user/dumpCSV', 'V1\\Admin\\UserController@dumpCSV');
|
||||||
|
$router->post('/user/sendMail', 'V1\\Admin\\UserController@sendMail');
|
||||||
|
$router->post('/user/ban', 'V1\\Admin\\UserController@ban');
|
||||||
|
$router->post('/user/resetSecret', 'V1\\Admin\\UserController@resetSecret');
|
||||||
|
$router->post('/user/setInviteUser', 'V1\\Admin\\UserController@setInviteUser');
|
||||||
|
// Stat
|
||||||
|
$router->get ('/stat/getStat', 'V1\\Admin\\StatController@getStat');
|
||||||
|
$router->get ('/stat/getOverride', 'V1\\Admin\\StatController@getOverride');
|
||||||
|
$router->get ('/stat/getServerLastRank', 'V1\\Admin\\StatController@getServerLastRank');
|
||||||
|
$router->get ('/stat/getOrder', 'V1\\Admin\\StatController@getOrder');
|
||||||
|
$router->get ('/stat/getStatUser', 'V1\\Admin\\StatController@getStatUser');
|
||||||
|
$router->get ('/stat/getRanking', 'V1\\Admin\\StatController@getRanking');
|
||||||
|
$router->get ('/stat/getStatRecord', 'V1\\Admin\\StatController@getStatRecord');
|
||||||
|
// Notice
|
||||||
|
$router->get ('/notice/fetch', 'V1\\Admin\\NoticeController@fetch');
|
||||||
|
$router->post('/notice/save', 'V1\\Admin\\NoticeController@save');
|
||||||
|
$router->post('/notice/update', 'V1\\Admin\\NoticeController@update');
|
||||||
|
$router->post('/notice/drop', 'V1\\Admin\\NoticeController@drop');
|
||||||
|
$router->post('/notice/show', 'V1\\Admin\\NoticeController@show');
|
||||||
|
// Ticket
|
||||||
|
$router->get ('/ticket/fetch', 'V1\\Admin\\TicketController@fetch');
|
||||||
|
$router->post('/ticket/reply', 'V1\\Admin\\TicketController@reply');
|
||||||
|
$router->post('/ticket/close', 'V1\\Admin\\TicketController@close');
|
||||||
|
// Coupon
|
||||||
|
$router->get ('/coupon/fetch', 'V1\\Admin\\CouponController@fetch');
|
||||||
|
$router->post('/coupon/generate', 'V1\\Admin\\CouponController@generate');
|
||||||
|
$router->post('/coupon/drop', 'V1\\Admin\\CouponController@drop');
|
||||||
|
$router->post('/coupon/show', 'V1\\Admin\\CouponController@show');
|
||||||
|
// Knowledge
|
||||||
|
$router->get ('/knowledge/fetch', 'V1\\Admin\\KnowledgeController@fetch');
|
||||||
|
$router->get ('/knowledge/getCategory', 'V1\\Admin\\KnowledgeController@getCategory');
|
||||||
|
$router->post('/knowledge/save', 'V1\\Admin\\KnowledgeController@save');
|
||||||
|
$router->post('/knowledge/show', 'V1\\Admin\\KnowledgeController@show');
|
||||||
|
$router->post('/knowledge/drop', 'V1\\Admin\\KnowledgeController@drop');
|
||||||
|
$router->post('/knowledge/sort', 'V1\\Admin\\KnowledgeController@sort');
|
||||||
|
// Payment
|
||||||
|
$router->get ('/payment/fetch', 'V1\\Admin\\PaymentController@fetch');
|
||||||
|
$router->get ('/payment/getPaymentMethods', 'V1\\Admin\\PaymentController@getPaymentMethods');
|
||||||
|
$router->post('/payment/getPaymentForm', 'V1\\Admin\\PaymentController@getPaymentForm');
|
||||||
|
$router->post('/payment/save', 'V1\\Admin\\PaymentController@save');
|
||||||
|
$router->post('/payment/drop', 'V1\\Admin\\PaymentController@drop');
|
||||||
|
$router->post('/payment/show', 'V1\\Admin\\PaymentController@show');
|
||||||
|
$router->post('/payment/sort', 'V1\\Admin\\PaymentController@sort');
|
||||||
|
// System
|
||||||
|
$router->get ('/system/getSystemStatus', 'V1\\Admin\\SystemController@getSystemStatus');
|
||||||
|
$router->get ('/system/getQueueStats', 'V1\\Admin\\SystemController@getQueueStats');
|
||||||
|
$router->get ('/system/getQueueWorkload', 'V1\\Admin\\SystemController@getQueueWorkload');
|
||||||
|
$router->get ('/system/getQueueMasters', '\\Laravel\\Horizon\\Http\\Controllers\\MasterSupervisorController@index');
|
||||||
|
$router->get ('/system/getSystemLog', 'V1\\Admin\\SystemController@getSystemLog');
|
||||||
|
// Theme
|
||||||
|
$router->get ('/theme/getThemes', 'V1\\Admin\\ThemeController@getThemes');
|
||||||
|
$router->post('/theme/saveThemeConfig', 'V1\\Admin\\ThemeController@saveThemeConfig');
|
||||||
|
$router->post('/theme/getThemeConfig', 'V1\\Admin\\ThemeController@getThemeConfig');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace App\Http\Routes;
|
namespace App\Http\Routes\V1;
|
||||||
|
|
||||||
use Illuminate\Contracts\Routing\Registrar;
|
use Illuminate\Contracts\Routing\Registrar;
|
||||||
|
|
||||||
@ -12,10 +12,10 @@ class ClientRoute
|
|||||||
'middleware' => 'client'
|
'middleware' => 'client'
|
||||||
], function ($router) {
|
], function ($router) {
|
||||||
// Client
|
// Client
|
||||||
$router->get('/subscribe', 'Client\\ClientController@subscribe');
|
$router->get('/subscribe', 'V1\\Client\\ClientController@subscribe');
|
||||||
// App
|
// App
|
||||||
$router->get('/app/getConfig', 'Client\\AppController@getConfig');
|
$router->get('/app/getConfig', 'V1\\Client\\AppController@getConfig');
|
||||||
$router->get('/app/getVersion', 'Client\\AppController@getVersion');
|
$router->get('/app/getVersion', 'V1\\Client\\AppController@getVersion');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace App\Http\Routes;
|
namespace App\Http\Routes\V1;
|
||||||
|
|
||||||
use Illuminate\Contracts\Routing\Registrar;
|
use Illuminate\Contracts\Routing\Registrar;
|
||||||
|
|
||||||
@ -11,13 +11,13 @@ class GuestRoute
|
|||||||
'prefix' => 'guest'
|
'prefix' => 'guest'
|
||||||
], function ($router) {
|
], function ($router) {
|
||||||
// Plan
|
// Plan
|
||||||
$router->get ('/plan/fetch', 'Guest\\PlanController@fetch');
|
$router->get ('/plan/fetch', 'V1\\Guest\\PlanController@fetch');
|
||||||
// Telegram
|
// Telegram
|
||||||
$router->post('/telegram/webhook', 'Guest\\TelegramController@webhook');
|
$router->post('/telegram/webhook', 'V1\\Guest\\TelegramController@webhook');
|
||||||
// Payment
|
// Payment
|
||||||
$router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', 'Guest\\PaymentController@notify');
|
$router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', 'V1\\Guest\\PaymentController@notify');
|
||||||
// Comm
|
// Comm
|
||||||
$router->get ('/comm/config', 'Guest\\CommController@config');
|
$router->get ('/comm/config', 'V1\\Guest\\CommController@config');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
25
app/Http/Routes/V1/PassportRoute.php
Normal file
25
app/Http/Routes/V1/PassportRoute.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
namespace App\Http\Routes\V1;
|
||||||
|
|
||||||
|
use Illuminate\Contracts\Routing\Registrar;
|
||||||
|
|
||||||
|
class PassportRoute
|
||||||
|
{
|
||||||
|
public function map(Registrar $router)
|
||||||
|
{
|
||||||
|
$router->group([
|
||||||
|
'prefix' => 'passport'
|
||||||
|
], function ($router) {
|
||||||
|
// Auth
|
||||||
|
$router->post('/auth/register', 'V1\\Passport\\AuthController@register');
|
||||||
|
$router->post('/auth/login', 'V1\\Passport\\AuthController@login');
|
||||||
|
$router->get ('/auth/token2Login', 'V1\\Passport\\AuthController@token2Login');
|
||||||
|
$router->post('/auth/forget', 'V1\\Passport\\AuthController@forget');
|
||||||
|
$router->post('/auth/getQuickLoginUrl', 'V1\\Passport\\AuthController@getQuickLoginUrl');
|
||||||
|
$router->post('/auth/loginWithMailLink', 'V1\\Passport\\AuthController@loginWithMailLink');
|
||||||
|
// Comm
|
||||||
|
$router->post('/comm/sendEmailVerify', 'V1\\Passport\\CommController@sendEmailVerify');
|
||||||
|
$router->post('/comm/pv', 'V1\\Passport\\CommController@pv');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace App\Http\Routes;
|
namespace App\Http\Routes\V1;
|
||||||
|
|
||||||
use Illuminate\Contracts\Routing\Registrar;
|
use Illuminate\Contracts\Routing\Registrar;
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ class ServerRoute
|
|||||||
'prefix' => 'server'
|
'prefix' => 'server'
|
||||||
], function ($router) {
|
], function ($router) {
|
||||||
$router->any('/{class}/{action}', function($class, $action) {
|
$router->any('/{class}/{action}', function($class, $action) {
|
||||||
$ctrl = \App::make("\\App\\Http\\Controllers\\Server\\" . ucfirst($class) . "Controller");
|
$ctrl = \App::make("\\App\\Http\\Controllers\\V1\\Server\\" . ucfirst($class) . "Controller");
|
||||||
return \App::call([$ctrl, $action]);
|
return \App::call([$ctrl, $action]);
|
||||||
});
|
});
|
||||||
});
|
});
|
32
app/Http/Routes/V1/StaffRoute.php
Normal file
32
app/Http/Routes/V1/StaffRoute.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
namespace App\Http\Routes\V1;
|
||||||
|
|
||||||
|
use Illuminate\Contracts\Routing\Registrar;
|
||||||
|
|
||||||
|
class StaffRoute
|
||||||
|
{
|
||||||
|
public function map(Registrar $router)
|
||||||
|
{
|
||||||
|
$router->group([
|
||||||
|
'prefix' => 'staff',
|
||||||
|
'middleware' => 'staff'
|
||||||
|
], function ($router) {
|
||||||
|
// Ticket
|
||||||
|
$router->get ('/ticket/fetch', 'V1\\Staff\\TicketController@fetch');
|
||||||
|
$router->post('/ticket/reply', 'V1\\Staff\\TicketController@reply');
|
||||||
|
$router->post('/ticket/close', 'V1\\Staff\\TicketController@close');
|
||||||
|
// User
|
||||||
|
$router->post('/user/update', 'V1\\Staff\\UserController@update');
|
||||||
|
$router->get ('/user/getUserInfoById', 'V1\\Staff\\UserController@getUserInfoById');
|
||||||
|
$router->post('/user/sendMail', 'V1\\Staff\\UserController@sendMail');
|
||||||
|
$router->post('/user/ban', 'V1\\Staff\\UserController@ban');
|
||||||
|
// Plan
|
||||||
|
$router->get ('/plan/fetch', 'V1\\Staff\\PlanController@fetch');
|
||||||
|
// Notice
|
||||||
|
$router->get ('/notice/fetch', 'V1\\Admin\\NoticeController@fetch');
|
||||||
|
$router->post('/notice/save', 'V1\\Admin\\NoticeController@save');
|
||||||
|
$router->post('/notice/update', 'V1\\Admin\\NoticeController@update');
|
||||||
|
$router->post('/notice/drop', 'V1\\Admin\\NoticeController@drop');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
64
app/Http/Routes/V1/UserRoute.php
Normal file
64
app/Http/Routes/V1/UserRoute.php
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
namespace App\Http\Routes\V1;
|
||||||
|
|
||||||
|
use Illuminate\Contracts\Routing\Registrar;
|
||||||
|
|
||||||
|
class UserRoute
|
||||||
|
{
|
||||||
|
public function map(Registrar $router)
|
||||||
|
{
|
||||||
|
$router->group([
|
||||||
|
'prefix' => 'user',
|
||||||
|
'middleware' => 'user'
|
||||||
|
], function ($router) {
|
||||||
|
// User
|
||||||
|
$router->get ('/resetSecurity', 'V1\\User\\UserController@resetSecurity');
|
||||||
|
$router->get ('/info', 'V1\\User\\UserController@info');
|
||||||
|
$router->post('/changePassword', 'V1\\User\\UserController@changePassword');
|
||||||
|
$router->post('/update', 'V1\\User\\UserController@update');
|
||||||
|
$router->get ('/getSubscribe', 'V1\\User\\UserController@getSubscribe');
|
||||||
|
$router->get ('/getStat', 'V1\\User\\UserController@getStat');
|
||||||
|
$router->get ('/checkLogin', 'V1\\User\\UserController@checkLogin');
|
||||||
|
$router->post('/transfer', 'V1\\User\\UserController@transfer');
|
||||||
|
$router->post('/getQuickLoginUrl', 'V1\\User\\UserController@getQuickLoginUrl');
|
||||||
|
$router->get ('/getActiveSession', 'V1\\User\\UserController@getActiveSession');
|
||||||
|
$router->post('/removeActiveSession', 'V1\\User\\UserController@removeActiveSession');
|
||||||
|
// Order
|
||||||
|
$router->post('/order/save', 'V1\\User\\OrderController@save');
|
||||||
|
$router->post('/order/checkout', 'V1\\User\\OrderController@checkout');
|
||||||
|
$router->get ('/order/check', 'V1\\User\\OrderController@check');
|
||||||
|
$router->get ('/order/detail', 'V1\\User\\OrderController@detail');
|
||||||
|
$router->get ('/order/fetch', 'V1\\User\\OrderController@fetch');
|
||||||
|
$router->get ('/order/getPaymentMethod', 'V1\\User\\OrderController@getPaymentMethod');
|
||||||
|
$router->post('/order/cancel', 'V1\\User\\OrderController@cancel');
|
||||||
|
// Plan
|
||||||
|
$router->get ('/plan/fetch', 'V1\\User\\PlanController@fetch');
|
||||||
|
// Invite
|
||||||
|
$router->get ('/invite/save', 'V1\\User\\InviteController@save');
|
||||||
|
$router->get ('/invite/fetch', 'V1\\User\\InviteController@fetch');
|
||||||
|
$router->get ('/invite/details', 'V1\\User\\InviteController@details');
|
||||||
|
// Notice
|
||||||
|
$router->get ('/notice/fetch', 'V1\\User\\NoticeController@fetch');
|
||||||
|
// Ticket
|
||||||
|
$router->post('/ticket/reply', 'V1\\User\\TicketController@reply');
|
||||||
|
$router->post('/ticket/close', 'V1\\User\\TicketController@close');
|
||||||
|
$router->post('/ticket/save', 'V1\\User\\TicketController@save');
|
||||||
|
$router->get ('/ticket/fetch', 'V1\\User\\TicketController@fetch');
|
||||||
|
$router->post('/ticket/withdraw', 'V1\\User\\TicketController@withdraw');
|
||||||
|
// Server
|
||||||
|
$router->get ('/server/fetch', 'V1\\User\\ServerController@fetch');
|
||||||
|
// Coupon
|
||||||
|
$router->post('/coupon/check', 'V1\\User\\CouponController@check');
|
||||||
|
// Telegram
|
||||||
|
$router->get ('/telegram/getBotInfo', 'V1\\User\\TelegramController@getBotInfo');
|
||||||
|
// Comm
|
||||||
|
$router->get ('/comm/config', 'V1\\User\\CommController@config');
|
||||||
|
$router->Post('/comm/getStripePublicKey', 'V1\\User\\CommController@getStripePublicKey');
|
||||||
|
// Knowledge
|
||||||
|
$router->get ('/knowledge/fetch', 'V1\\User\\KnowledgeController@fetch');
|
||||||
|
$router->get ('/knowledge/getCategory', 'V1\\User\\KnowledgeController@getCategory');
|
||||||
|
// Stat
|
||||||
|
$router->get ('/stat/getTrafficLog', 'V1\\User\\StatController@getTrafficLog');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -73,7 +73,7 @@ class RouteServiceProvider extends ServiceProvider
|
|||||||
'namespace' => $this->namespace
|
'namespace' => $this->namespace
|
||||||
], function ($router) {
|
], function ($router) {
|
||||||
foreach (glob(app_path('Http//Routes') . '/*.php') as $file) {
|
foreach (glob(app_path('Http//Routes') . '/*.php') as $file) {
|
||||||
$this->app->make('App\\Http\\Routes\\' . basename($file, '.php'))->map($router);
|
$this->app->make('App\\Http\\Routes\\V1\\' . basename($file, '.php'))->map($router);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user