feature: add api for categories
feature: add initial docker build and compose for development mode
This commit is contained in:
parent
6bf486e52b
commit
f980be8e28
14 changed files with 520 additions and 0 deletions
|
|
@ -1,10 +1,17 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\CategoryController;
|
||||
use App\Http\Controllers\EntryController;
|
||||
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']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue