mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Fixed old style user routes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
207c785b1d
commit
db45de5da2
|
@ -1,17 +1,50 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use App\Http\Controllers\Users;
|
use App\Http\Controllers\Users;
|
||||||
|
use App\Http\Controllers\Users\UserFilesController;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
// User Management
|
// User Management
|
||||||
Route::post('{userId}/clone', [ 'uses' => 'Users\UsersController@postCreate' ]);
|
Route::post(
|
||||||
Route::post('{userId}/restore', [ 'as' => 'restore/user', 'uses' => 'Users\UsersController@getRestore' ]);
|
'{userId}/clone',
|
||||||
Route::get('{userId}/unsuspend', [ 'as' => 'unsuspend/user', 'uses' => 'Users\UsersController@getUnsuspend' ]);
|
[
|
||||||
Route::post('{userId}/upload', [ 'as' => 'upload/user', 'uses' => 'Users\UserFilesController@store' ]);
|
Users\UsersController::class,
|
||||||
|
'postCreate'
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
Route::post(
|
||||||
|
'{userId}/restore',
|
||||||
|
[
|
||||||
|
Users\UsersController::class,
|
||||||
|
'getRestore'
|
||||||
|
]
|
||||||
|
)->name('restore/user');
|
||||||
|
|
||||||
|
Route::get(
|
||||||
|
'{userId}/unsuspend',
|
||||||
|
[
|
||||||
|
Users\UsersController::class,
|
||||||
|
'getUnsuspend'
|
||||||
|
]
|
||||||
|
)->name('unsuspend/user');
|
||||||
|
|
||||||
|
Route::post(
|
||||||
|
'{userId}/upload',
|
||||||
|
[
|
||||||
|
Users\UserFilesController::class,
|
||||||
|
'store'
|
||||||
|
]
|
||||||
|
)->name('upload/user');
|
||||||
|
|
||||||
Route::delete(
|
Route::delete(
|
||||||
'{userId}/deletefile/{fileId}',
|
'{userId}/deletefile/{fileId}',
|
||||||
[ 'as' => 'userfile.destroy', 'uses' => 'Users\UserFilesController@destroy' ]
|
[
|
||||||
);
|
Users\UserFilesController::class,
|
||||||
|
'destroy'
|
||||||
|
]
|
||||||
|
)->name('userfile.destroy');
|
||||||
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'users', 'middleware' => ['auth']], function () {
|
Route::group(['prefix' => 'users', 'middleware' => ['auth']], function () {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue