| <?php |
| |
| use Illuminate\Http\Request; |
| use Illuminate\Support\Facades\Route; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Route::middleware('auth:api')->get('/user', function (Request $request) { |
| return $request->user(); |
| }); |
| |
| |
| Route::namespace('Api')->group(function() |
| { |
| |
| Route::apiResource('internal-clients', 'InternalClientController', ['except' => ['create','edit']]); |
| Route::apiResource('subsidiaries', 'SubsidiaryController', ['except' => ['create','edit']]); |
| Route::apiResource('departments', 'DepartmentController', ['except' => ['create','edit']]); |
| Route::apiResource('sections', 'SectionController', ['except' => ['create','edit']]); |
| Route::apiResource('job-titles', 'JobTitleController', ['except' => ['create','edit']]); |
| Route::apiResource('users', 'UserController', ['except' => ['create','edit']]); |
| |
| |
| Route::apiResource('recurrences', 'RecurrenceController', ['except' => ['create','edit']]); |
| Route::apiResource('status', 'StatusController', ['except' => ['create','edit']]); |
| Route::apiResource('task-types', 'TaskTypeController', ['except' => ['create','edit']]); |
| Route::apiResource('task-lists', 'TaskListController', ['except' => ['create','edit']]); |
| |
| |
| }); |