This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user