feat: add TextWidget
add TextWidget CRUD api add basic tests for API
This commit is contained in:
parent
13cfd2961f
commit
c66645cbdd
18 changed files with 536 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\EntryController;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\TextWidgetController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::middleware('auth:sanctum')->group(function () {
|
||||
|
|
@ -10,4 +10,10 @@ Route::middleware('auth:sanctum')->group(function () {
|
|||
Route::get('/entries/{entry}', [EntryController::class, 'show']);
|
||||
Route::put('/entries/{entry}', [EntryController::class, 'update']);
|
||||
Route::delete('/entries/{entry}', [EntryController::class, 'destroy']);
|
||||
|
||||
Route::get('/text-widgets', [TextWidgetController::class, 'index']);
|
||||
Route::post('/text-widgets', [TextWidgetController::class, 'store']);
|
||||
Route::get('/text-widgets/{textWidget}', [TextWidgetController::class, 'show']);
|
||||
Route::put('/text-widgets/{textWidget}', [TextWidgetController::class, 'update']);
|
||||
Route::delete('/text-widgets/{textWidget}', [TextWidgetController::class, 'destroy']);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue