29 lines
559 B
PHP
29 lines
559 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Http\Traits\ApiResponse;
|
|
use App\Models\Lists\UserPosition;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class UserPositionController extends Controller
|
|
{
|
|
use ApiResponse;
|
|
|
|
/**
|
|
* Elenco delle position.
|
|
*/
|
|
public function index(): JsonResponse
|
|
{
|
|
return $this->collectionResponse(UserPosition::all());
|
|
}
|
|
|
|
/**
|
|
* Dettaglio di una position.
|
|
*/
|
|
public function show(UserPosition $userPosition): JsonResponse
|
|
{
|
|
return $this->okResponse($userPosition);
|
|
}
|
|
}
|