This is a todo with JWT for users authentication made with laravel 6 and mongoDB as database server
npm install
php artisan serve
db name = aostodo
Apllicarion will start on port 8000
api/login : Route::post("login", "AuthController@login") : To connect a user;
api/register : Route::post("register", "AuthController@register"); : To register a new user
api/logout : Route::get("logout", "AuthController@logout"); : To logout a user
Route::resource("tasks", "TaskController"); <br>
GET api/tasks : All tasks for an authenticated user
POST api/tasks : Create a task
PATCH api/tasks/{id} : update a task
DELETE api/tasks/{id} : Delete a task