Files
account/routes/api.php
2026-01-18 20:17:59 +08:00

28 lines
1.3 KiB
PHP

<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
use Illuminate\Support\Facades\Route;
Route::name('system.')->prefix('system')->middleware(['auth.check:api'])->group(function () {
Route::controller(Modules\System\Controllers\Api\Area::class)->prefix('area')->name('area.')->group(function () {
Route::get('/', 'index')->name('lists');
});
Route::controller(Modules\System\Controllers\Api\Index::class)->prefix('index')->name('index.')->group(function () {
Route::get('/qrcode', 'qrcode')->name('qrcode');
});
Route::controller(Modules\System\Controllers\Api\Wechat::class)->prefix('wechat')->name('wechat.')->group(function () {
Route::get('/serve', 'serve')->name('serve');
Route::post('/jssdk', 'jssdk')->name('jssdk');
});
});
// 记账相关路由
Route::middleware(['auth:api'])->prefix('account')->group(function () {
require base_path('modules/Account/routes/api.php');
});