mini.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. use Illuminate\Http\Request;
  3. use Illuminate\Support\Facades\Route;
  4. Route::get('/', [\App\Http\Controllers\Controller::class, "ping"]);
  5. Route::post("/auth/codeToSession", [\App\Modules\Mini\Controllers\AuthController::class, "codeToSession"]);
  6. Route::get("/auth/test", [\App\Modules\Mini\Controllers\AuthController::class, "test"]);
  7. Route::post("/auth/emailCaptcha", [\App\Modules\Mini\Controllers\AuthController::class, "emailCaptcha"]);
  8. Route::middleware([\App\Http\Middleware\CheckAuthMiddleware::class])->group(function () {
  9. Route::post("/auth/decryptUserInfo", [\App\Modules\Mini\Controllers\AuthController::class, "decryptUserInfo"]);
  10. Route::post("/auth/decryptPhone", [\App\Modules\Mini\Controllers\AuthController::class, "decryptPhone"]);
  11. Route::get("/auth/profile", [\App\Modules\Mini\Controllers\AuthController::class, "profile"]);
  12. Route::post('/auth/updateUserInfo', [\App\Modules\Mini\Controllers\AuthController::class, "updateUserInfo"]);
  13. Route::post("/goods/fav", [\App\Modules\Mini\Controllers\GoodsController::class, "fav"]);
  14. Route::post("/goods/ask", [\App\Modules\Mini\Controllers\GoodsController::class, "ask"]);
  15. Route::post("/goods/cart", [\App\Modules\Mini\Controllers\GoodsController::class, "cart"]);
  16. Route::get("/user/address", [\App\Modules\Mini\Controllers\UserController::class, "address"]);
  17. Route::post("/user/addressDel", [\App\Modules\Mini\Controllers\UserController::class, "addressDel"]);
  18. Route::post("/user/addressStore", [\App\Modules\Mini\Controllers\UserController::class, "addressStore"]);
  19. Route::post("/user/company", [\App\Modules\Mini\Controllers\UserController::class, "company"]);
  20. Route::get("/user/fav", [\App\Modules\Mini\Controllers\UserController::class, "fav"]);
  21. Route::post("/user/favDel", [\App\Modules\Mini\Controllers\UserController::class, "favDel"]);
  22. Route::get("/cart", [\App\Modules\Mini\Controllers\CartController::class, "index"]);
  23. Route::post("/cart/del", [\App\Modules\Mini\Controllers\CartController::class, "del"]);
  24. Route::post("/cart/store", [\App\Modules\Mini\Controllers\CartController::class, "store"]);
  25. Route::post("/cart/ask", [\App\Modules\Mini\Controllers\CartController::class, "ask"]);
  26. });
  27. Route::get("/page/home", [\App\Modules\Mini\Controllers\PageController::class, "home"]);
  28. Route::get("/page/categoryTree", [\App\Modules\Mini\Controllers\PageController::class, "categoryTree"]);
  29. Route::get("/page/categoryGoods", [\App\Modules\Mini\Controllers\PageController::class, "categoryGoods"]);
  30. Route::post("/page/categoryGoods", [\App\Modules\Mini\Controllers\PageController::class, "categoryGoods"]);
  31. Route::get("/page/filterConfig", [\App\Modules\Mini\Controllers\PageController::class, "filterConfig"]);
  32. Route::get("/page/search", [\App\Modules\Mini\Controllers\PageController::class, "search"]);
  33. Route::post("/page/search", [\App\Modules\Mini\Controllers\PageController::class, "search"]);
  34. Route::get("/goods", [\App\Modules\Mini\Controllers\GoodsController::class, "goods"]);
  35. Route::get("/config", [\App\Modules\Mini\Controllers\ConfigController::class, "index"]);