Skip to content

Commit 3d29372

Browse files
committed
Change post/id to posts/id
1 parent d1b578a commit 3d29372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// });
2626

2727
Route::get('/posts', [PostsApiController::class, 'index']);
28-
Route::get('/post/{post}', [PostsApiController::class, 'get']);
28+
Route::get('/posts/{post}', [PostsApiController::class, 'get']);
2929
Route::post('/posts', [PostsApiController::class, 'store']);
3030
Route::put('/posts/{post}', [PostsApiController::class, 'update']);
3131
Route::delete('/posts/{post}', [PostsApiController::class, 'destroy']);

0 commit comments

Comments
 (0)