first commit

This commit is contained in:
2026-02-04 23:23:42 +07:00
commit ee28ea1a2d
202 changed files with 34797 additions and 0 deletions

12
laravel/routes/api.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
use App\Http\Controllers\ArticleController;
use App\Http\Controllers\CommentController;
use Illuminate\Support\Facades\Route;
Route::prefix('articles')->group(function () {
Route::get('/', [ArticleController::class, 'index'])->name('articles.index');
Route::get('/{article}', [ArticleController::class, 'show'])->name('articles.show');
Route::post('/', [ArticleController::class, 'store'])->name('articles.store');
Route::post('/{article}/comments', [CommentController::class, 'store'])->name('comments.store');
});