OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
26
app/Domain/Users/routes.php
Normal file
26
app/Domain/Users/routes.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Leantime\Domain\Users\Controllers\ProfileImage;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Users Domain Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Profile images were relocated here from the retired Api\Controllers\Users.
|
||||
| The canonical route is /users/profileImage/{id}. The /api/users alias is kept
|
||||
| because ~70 <img src> references across core templates AND the plugin submodule
|
||||
| (Copilot, StrategyPro, PgmPro, Whiteboardscanvas, Llamadorian) hardcode
|
||||
| /api/users?profileImage= and cannot be rewritten from this repo. Both paths are
|
||||
| served directly (no redirect) to avoid an avatar redirect-storm on list views.
|
||||
|
|
||||
*/
|
||||
|
||||
// Canonical
|
||||
Route::get('/users/profileImage/{id?}', [ProfileImage::class, 'show'])->name('users.profileImage');
|
||||
Route::post('/users/profileImage', [ProfileImage::class, 'upload']);
|
||||
|
||||
// Backward-compat alias for the retired /api/users endpoint
|
||||
Route::get('/api/users', [ProfileImage::class, 'show'])->name('users.profileImage.legacy');
|
||||
Route::post('/api/users', [ProfileImage::class, 'upload']);
|
||||
Reference in New Issue
Block a user