Skip to content

Commit

Permalink
API route
Browse files Browse the repository at this point in the history
  • Loading branch information
JosueOb authored May 27, 2022
1 parent 27d7323 commit 0a3242f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
Route::post('/login', [AuthController::class, 'login']);
Route::get('/reports', [ReportController::class, 'list_reports']);

/*Protected routes*/
/*Protected routes - improve authentication with token*/
Route::middleware('auth:sanctum')->group(function () {
Route::get('/me', [UserController::class, 'me']);
Route::get('/users', [UserController::class, 'list_users']);

0 comments on commit 0a3242f

Please sign in to comment.