admin.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::post("/admin/auth/login", [\App\Modules\Admin\Controllers\Admin\AuthController::class, "login"]);
  4. Route::middleware([\App\Http\Middleware\AdminAuthMiddleware::class])->group(function () {
  5. Route::get("/admin/auth/profile", [\App\Modules\Admin\Controllers\Admin\AuthController::class, "profile"]);
  6. Route::post("/admin/auth/changePassword", [\App\Modules\Admin\Controllers\Admin\AuthController::class, "changePassword"]);
  7. Route::get("/admin/user/paginate", [\App\Modules\Admin\Controllers\Admin\UserController::class, "paginate"]);
  8. Route::post("/admin/user/changeStatus", [\App\Modules\Admin\Controllers\Admin\UserController::class, "changeStatus"]);
  9. Route::post("/admin/user/saveSetting", [\App\Modules\Admin\Controllers\Admin\UserController::class, "saveSetting"]);
  10. Route::get("/admin/user/export", [\App\Modules\Admin\Controllers\Admin\UserController::class, "export"]);
  11. Route::get("/admin/banner/paginate", [\App\Modules\Admin\Controllers\Admin\BannerController::class, "paginate"]);
  12. Route::post("/admin/banner/store", [\App\Modules\Admin\Controllers\Admin\BannerController::class, "store"]);
  13. Route::post("/admin/banner/del", [\App\Modules\Admin\Controllers\Admin\BannerController::class, "del"]);
  14. Route::post("/admin/banner/changeStatus", [\App\Modules\Admin\Controllers\Admin\BannerController::class, "changeStatus"]);
  15. Route::get("/admin/common/groupMap", [\App\Modules\Admin\Controllers\Admin\CommonController::class, "groupMap"]);
  16. Route::get("/admin/common/permissionMap", [\App\Modules\Admin\Controllers\Admin\CommonController::class, "permissionMap"]);
  17. Route::get("/admin/common/settingMap", [\App\Modules\Admin\Controllers\Admin\CommonController::class, "settingMap"]);
  18. Route::post("/admin/common/settingSave", [\App\Modules\Admin\Controllers\Admin\CommonController::class, "settingSave"]);
  19. Route::get("/admin/common/allCategory", [\App\Modules\Admin\Controllers\Admin\CommonController::class, "allCategory"]);
  20. Route::get("/admin/common/allSpec", [\App\Modules\Admin\Controllers\Admin\CommonController::class, "allSpec"]);
  21. Route::get("/admin/common/allCustom", [\App\Modules\Admin\Controllers\Admin\CommonController::class, "allCustom"]);
  22. Route::get("/admin/goods/specPaginate", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "specPaginate"]);
  23. Route::get("/admin/goods/specInfo", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "specInfo"]);
  24. Route::post("/admin/goods/specStore", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "specStore"]);
  25. Route::post("/admin/goods/specDelete", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "specDelete"]);
  26. Route::get("/admin/goods/paginate", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "paginate"]);
  27. Route::get("/admin/goods/info", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "info"]);
  28. Route::post("/admin/goods/makeSkuTable", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "makeSkuTable"]);
  29. Route::post("/admin/goods/changeStatus", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "changeStatus"]);
  30. Route::post("/admin/goods/store", [\App\Modules\Admin\Controllers\Admin\GoodsController::class, "store"]);
  31. Route::get("/admin/category/paginate", [\App\Modules\Admin\Controllers\Admin\CategoryController::class, "paginate"]);
  32. Route::get("/admin/category/info", [\App\Modules\Admin\Controllers\Admin\CategoryController::class, "info"]);
  33. Route::post("/admin/category/store", [\App\Modules\Admin\Controllers\Admin\CategoryController::class, "store"]);
  34. Route::post("/admin/category/del", [\App\Modules\Admin\Controllers\Admin\CategoryController::class, "del"]);
  35. Route::get("/admin/order/paginate", [\App\Modules\Admin\Controllers\Admin\OrderController::class, "paginate"]);
  36. Route::get("/admin/order/export", [\App\Modules\Admin\Controllers\Admin\OrderController::class, "export"]);
  37. });