web.php 689 B

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