mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
no message
This commit is contained in:
1 parent
21ad81cee7
commit
7d615d3b56
1 file changed
+7
-1
+7
-1
@@ -88,7 +88,13 @@ Route::middleware(['auth:sanctum', 'abilities:full-access'])->group(function ()
|
||||
Route::put('/v1/subtasks/{id}', SubTaskController::class . '@update');
|
||||
|
||||
Route::get('/v1/subtasks/{id}', function ($id) {
|
||||
return new SubTaskResource( SubTask::published()->find($id));
|
||||
$subtask = SubTask::find($id);
|
||||
|
||||
if (!$subtask) {
|
||||
return response()->json(['message' => 'Subtask not found.'], 404);
|
||||
}
|
||||
|
||||
return new SubTaskResource($subtask);
|
||||
});
|
||||
Route::post('/v1/subtasks/{id}/timesheet', SubTaskController::class . '@submitTimesheet');
|
||||
|
||||
|
||||
Reference in new issue
Block a user