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 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