Files
Leantime/app/Domain/Setting/routes.php
wangruiguo d647428529
Some checks failed
Security Audit / Composer Security Audit (push) Has been cancelled
Security Audit / NPM Security Audit (push) Has been cancelled
Security Audit / CodeQL Analysis (push) Has been cancelled
OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
2026-09-03 18:49:20 +08:00

22 lines
776 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use Leantime\Domain\Setting\Controllers\Logo;
/*
|--------------------------------------------------------------------------
| Setting Domain Routes
|--------------------------------------------------------------------------
|
| The company logo upload was relocated here from the retired Api\Controllers\Setting.
| The canonical route is /setting/logo. The /api/setting alias is kept so the existing
| company-settings logo cropper (settingRepository.js) keeps working without a JS change.
|
*/
// Canonical
Route::post('/setting/logo', [Logo::class, 'post'])->name('setting.logo');
// Backward-compat alias for the retired /api/setting endpoint
Route::post('/api/setting', [Logo::class, 'post'])->name('setting.logo.legacy');