refactor: remove /api/users/private/trash/list

This commit is contained in:
b1ek 2024-08-30 17:35:18 +10:00
parent 0595a73b67
commit c320d10e08
Signed by: blek
GPG Key ID: 14546221E3595D0C
4 changed files with 0 additions and 31 deletions

View File

@ -40,9 +40,4 @@ class TrashUserController extends Controller
return response()->json($ret, 404);
}
}
public function list(AuthorizedRequest $request)
{
return $this->userTrashService->listUsersInTrash();
}
}

View File

@ -40,9 +40,4 @@ class UserTrashService
return User::whereIn('id', $ids)->whereNotNull('deleted_at')->delete();
}
public function listUsersInTrash(): array
{
return User::whereNotNull('deleted_at')->get()->toArray();
}
}

View File

@ -440,26 +440,6 @@ paths:
description: Auth failed
403:
description: Auth failed
/api/users/private/trash/list:
get:
summary: List users in trash
tags:
- Private routes
security:
- session: []
responses:
200:
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/User'
401:
description: Auth failed
403:
description: Auth failed
components:
schemas:
User:

View File

@ -25,7 +25,6 @@ Route::prefix('/api')->group(function() {
Route::put('/group', 'addMultiple');
Route::delete('/group', 'deleteMultiple');
Route::delete('/clean', 'cleanMultiple');
Route::get('/list', 'list');
});
});