web.php 796 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use App\Http\Controllers\api\Fingerprint;
  3. use Illuminate\Support\Facades\Route;
  4. use App\Http\Controllers\api\Home;
  5. //Route::prefix('/admin')->group(function () {
  6. // require base_path('routes/admin.php');
  7. //});
  8. //Route::get("/", [Home::class, 'index']);
  9. Route::get('/', function () {
  10. return view('login');
  11. });
  12. Route::get('/fingerprint',[Fingerprint::class,'index']);
  13. Route::get('/home', [Home::class, 'home']);
  14. Route::get('/user/list',function(){
  15. return view('user/list');
  16. });
  17. Route::get('/topup/list',function(){
  18. return view('user/list');
  19. });
  20. Route::fallback(function () {
  21. return response()->json([
  22. 'code' => \App\Constants\HttpStatus::NOT_FOUND,
  23. 'timestamp' => time(),
  24. 'msg' => 'Not Found.',
  25. 'data' => null
  26. ], 200);
  27. });