| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apache2/htdocs/app/routes/ |
Upload File : |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
// without auth
Route::get('/watcher',[App\Http\Controllers\HomeController::class, 'showLoginForm'])->name('login');
Route::post('/watcher',[App\Http\Controllers\HomeController::class, 'login']);
Route::post('/logout',[App\Http\Controllers\HomeController::class, 'logout'])->name('logout');
Route::get('/api/payment/summary', [App\Http\Controllers\PaymentRecordController::class, 'webView'])->name('payment-webview');
// with auth
Route::view('/watcher/home','home')->middleware(['auth:web']);
// SPA
Route::get('/{any?}',[App\Http\Controllers\HomeController::class, 'index'])->where('any', '^(?!api\/)[\/\w\.-]*');