feat: 为主题配置器插件新增文件上传功能及相关路由配置
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-12-28 12:06:00 +08:00
parent b0d436d771
commit a9864b0cd0
4 changed files with 100 additions and 5 deletions

View File

@@ -13,6 +13,15 @@ Route::group('console/v1', function () {
// 后台配置接口
Route::group(DIR_ADMIN . '/v1', function () {
// 文件上传接口
Route::post('upload', "\\addon\\theme_configurator\\controller\\UploadController@upload")
->append([
'_plugin' => 'theme_configurator',
'_controller' => 'upload',
'_action' => 'upload',
])
->middleware(\app\http\middleware\CheckAdmin::class);
Route::get('theme/config', "\\addon\\theme_configurator\\controller\\ThemeController@config")
->append([
'_plugin' => 'theme_configurator',