-
Notifications
You must be signed in to change notification settings - Fork 459
/
Copy pathapi.php
31 lines (24 loc) · 1.14 KB
/
api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
use App\Http\Controllers\Api\EmployeeWithdrawalController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('version', 'Api\\VersionController@version');
Route::get('/postal-code/{postalCode}', 'Api\PostalCodeController@search');
Route::post('/students/{student}/rotate-picture', 'Api\StudentRotatePictureController@rotate');
Route::group([
'middleware' => 'api:rest',
], function () {
Route::put('/students/{student}/update-state-registration', 'Api\StudentController@updateStateRegistration');
});
Route::get('/school-class/calendars', 'Api\SchoolClassController@getCalendars');
Route::get('/school-class/stages/{schoolClass}', 'Api\SchoolClassController@getStages');
Route::delete('/employee-withdrawal/{id}', [EmployeeWithdrawalController::class, 'remove']);