Connect CalDAV todos to DB-Items, finish todo component and add it to pipeline items
This commit is contained in:
@@ -9,6 +9,15 @@
|
||||
|
||||
class NoteController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$notes = Note::with('user')->orderBy('created_at', 'desc')->get();
|
||||
return ApiDataTransformer::snakeToCamel($notes->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
* @param Request $request
|
||||
@@ -16,7 +25,7 @@ class NoteController extends Controller
|
||||
* @param string $modelId The ID of the model
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function index(Request $request, string $modelType, int $modelId)
|
||||
public function notesForModel(Request $request, string $modelType, int $modelId)
|
||||
{
|
||||
$model = app("App\\Models\\" . $modelType)::findOrFail($modelId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user