Skip to content

Commit 9c8788b

Browse files
chore: Remove redefined method and use the trait method for getAll (#500)
Signed-off-by: matiasperrone-exo <matias.perrone@exomindset.co>
1 parent 27c0e84 commit 9c8788b

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

app/Http/Controllers/Apis/Protected/Summit/OAuth2SponsorshipTypeApiController.php

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -142,40 +142,6 @@ protected function getSummitRepository(): ISummitRepository
142142
new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"),
143143
]
144144
)]
145-
public function getAll()
146-
{
147-
return $this->_getAll(
148-
function(){
149-
return [
150-
'name' => ['==', '=@'],
151-
'label' => ['==', '=@'],
152-
'size' => ['==', '=@'],
153-
];
154-
},
155-
function(){
156-
return [
157-
'name' => 'sometimes|required|string',
158-
'label' => 'sometimes|required|string',
159-
'size' => 'sometimes|required|string',
160-
];
161-
},
162-
function(){
163-
return [
164-
'id',
165-
'name',
166-
'order',
167-
'label',
168-
'size',
169-
];
170-
},
171-
function($filter){
172-
return $filter;
173-
},
174-
function(){
175-
return SerializerRegistry::SerializerType_Public;
176-
}
177-
);
178-
}
179145

180146
#[OA\Post(
181147
path: "/api/v1/sponsorship-types",

0 commit comments

Comments
 (0)