From 25e11bcb7299fdab2c04f3cbcd00bb6979064b8a Mon Sep 17 00:00:00 2001 From: tanhongit Date: Fri, 2 Apr 2021 09:10:34 +0700 Subject: [PATCH 1/2] api --- routes/api.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/api.php b/routes/api.php index c641ca5..43c591c 100644 --- a/routes/api.php +++ b/routes/api.php @@ -16,3 +16,9 @@ Route::middleware('auth:api')->get('/user', function (Request $request) { return $request->user(); }); + +Route::post('save_student', 'StudentController@save_student'); +Route::get('all_students', 'StudentController@all_students'); +Route::get('edit_student/{id}', 'StudentController@edit_student'); +Route::put('update_student', 'StudentController@update_student'); +Route::delete('delete_student/{id}', 'StudentController@delete_student'); \ No newline at end of file From 354d6ae194b0532a0345c21c87ac26e2d4010c17 Mon Sep 17 00:00:00 2001 From: tanhongit Date: Fri, 2 Apr 2021 09:14:36 +0700 Subject: [PATCH 2/2] none --- public/note | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/note b/public/note index c245d22..9308e0b 100644 --- a/public/note +++ b/public/note @@ -64,4 +64,7 @@ filter: https://stackoverflow.com/questions/149055/how-to-format-numbers-as-currency-string https://www.youtube.com/watch?v=j97QtHf0CHY&t=882s -pagination laravel vue: https://github.com/gilbitron/laravel-vue-pagination \ No newline at end of file +pagination laravel vue: https://github.com/gilbitron/laravel-vue-pagination + +https://viblo.asia/p/restful-api-trong-laravel-cho-nguoi-moi-bat-dau-ByEZkNaqKQ0 +https://www.youtube.com/watch?v=Na2kVLVGJ4Y&list=PLE_gxCZQDh4-55n7ZoY3vgXUla7IMnVY0 \ No newline at end of file