pc.php 3.5 KB

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