Skip to content

Commit

Permalink
Cria endpoint que retorna as etapas de uma turma
Browse files Browse the repository at this point in the history
  • Loading branch information
munizeverton committed Oct 26, 2020
1 parent 7fae329 commit 73ae9d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/Api/SchoolClassController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ public function getCalendars(Request $request, SchoolClassService $schoolClassSe

return $schoolClassService->getCalendars($schoolClass);
}

public function getStages(LegacySchoolClass $schoolClass)
{
return $schoolClass->stages;
}
}
1 change: 1 addition & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
Route::post('/students/{student}/rotate-picture', 'Api\StudentRotatePictureController@rotate');

Route::get('/school-class/calendars', 'Api\SchoolClassController@getCalendars');
Route::get('/school-class/stages/{schoolClass}', 'Api\SchoolClassController@getStages');

0 comments on commit 73ae9d4

Please sign in to comment.