Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahamudun Hassan committed Dec 29, 2023
1 parent a6d6d31 commit d382e00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
9 changes: 9 additions & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});



// new api route by hassan
Route::post('/user/add', function (Request $request) {
// return $request->all();

return $request->intersect(['username', 'password']);
});

0 comments on commit d382e00

Please sign in to comment.