Co-authored-by: jon brookes <marshyon@gmail.com> Reviewed-on: https://codeberg.org/headshed/share-lt/pulls/20
29 lines
1.5 KiB
PHP
29 lines
1.5 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\CategoryController;
|
|
use App\Http\Controllers\EntryController;
|
|
use App\Http\Controllers\NotificationController;
|
|
use App\Http\Controllers\TextWidgetController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware('auth:sanctum')->group(function () {
|
|
Route::get('/categories', [CategoryController::class, 'index']);
|
|
Route::post('/categories', [CategoryController::class, 'store']);
|
|
Route::get('/categories/{category}', [CategoryController::class, 'show']);
|
|
Route::put('/categories/{category}', [CategoryController::class, 'update']);
|
|
Route::delete('/categories/{category}', [CategoryController::class, 'destroy']);
|
|
|
|
Route::get('/entries', [EntryController::class, 'index']);
|
|
Route::post('/entries', [EntryController::class, 'store']);
|
|
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']);
|
|
|
|
Route::post('/notifications/preview-site-built', [NotificationController::class, 'sendPreviewSiteBuilt']);
|
|
});
|