12 lines
390 B
PHP
12 lines
390 B
PHP
<?php
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
use App\Http\Controllers\Api\ArticleController;
|
|
|
|
Route::post('/articles', [ArticleController::class, 'store']);
|
|
Route::get('articles/{id}', [ArticleController::class, 'show']);
|
|
Route::put('articles/{id}', [ArticleController::class, 'update']);
|
|
Route::delete('articles/{id}', [ArticleController::class, 'destroy']);
|