Skip to content

Commit d42ae4f

Browse files
authored
Merge pull request #6 from TanHongIT/5-api
5 api
2 parents 2941ffa + 354d6ae commit d42ae4f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

public/note

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ filter:
6464
https://stackoverflow.com/questions/149055/how-to-format-numbers-as-currency-string
6565
https://www.youtube.com/watch?v=j97QtHf0CHY&t=882s
6666

67-
pagination laravel vue: https://github.com/gilbitron/laravel-vue-pagination
67+
pagination laravel vue: https://github.com/gilbitron/laravel-vue-pagination
68+
69+
https://viblo.asia/p/restful-api-trong-laravel-cho-nguoi-moi-bat-dau-ByEZkNaqKQ0
70+
https://www.youtube.com/watch?v=Na2kVLVGJ4Y&list=PLE_gxCZQDh4-55n7ZoY3vgXUla7IMnVY0

routes/api.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@
1616
Route::middleware('auth:api')->get('/user', function (Request $request) {
1717
return $request->user();
1818
});
19+
20+
Route::post('save_student', 'StudentController@save_student');
21+
Route::get('all_students', 'StudentController@all_students');
22+
Route::get('edit_student/{id}', 'StudentController@edit_student');
23+
Route::put('update_student', 'StudentController@update_student');
24+
Route::delete('delete_student/{id}', 'StudentController@delete_student');

0 commit comments

Comments
 (0)