36 lines
916 B
PHP
36 lines
916 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Mobile\ConectaCidadao\Agendamento;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Mobile\ConectaCidadao\Agendamento\AgendamentoService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class AgendamentoController extends Controller
|
|
{
|
|
public function especialidades()
|
|
{
|
|
return response()->json(AgendamentoService::especialidades(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function vagas()
|
|
{
|
|
return response()->json(AgendamentoService::vagas(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function store()
|
|
{
|
|
return response()->json(AgendamentoService::store(), Response::HTTP_CREATED);
|
|
}
|
|
|
|
public function cancelar($id)
|
|
{
|
|
return response()->json(AgendamentoService::cancelar($id), Response::HTTP_OK);
|
|
}
|
|
|
|
public function historico()
|
|
{
|
|
return response()->json(AgendamentoService::historico(), Response::HTTP_OK);
|
|
}
|
|
}
|