web.php 691 B

1234567891011121314151617181920212223
  1. <?php
  2. use App\Http\Controllers\AuthController;
  3. use App\Http\Controllers\HomeController;
  4. use Illuminate\Support\Facades\Route;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Web Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here is where you can register web routes for your application. These
  11. | routes are loaded by the RouteServiceProvider and all of them will
  12. | be assigned to the "web" middleware group. Make something great!
  13. |
  14. */
  15. Route::get('/', [AuthController::class, 'getLogin']);
  16. Route::get('/index', [HomeController::class, 'index']);
  17. Route::post('/post-login', [AuthController::class, 'postLogin']);