Skip to content

Instantly share code, notes, and snippets.

@tomredman
Created November 22, 2020 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomredman/8ad7d9c693b4397f3fb1d0604fdbce3e to your computer and use it in GitHub Desktop.
Save tomredman/8ad7d9c693b4397f3fb1d0604fdbce3e to your computer and use it in GitHub Desktop.
api-routes.php
/*
|--------------------------------------------------------------------------
| Authentication
|--------------------------------------------------------------------------
*/
Route::post('/register', [UserController::class, 'register']);
Route::post('/login', [UserController::class, 'login']);
Route::post('/logout', [UserController::class, 'logout']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment