瀏覽代碼

新增自定义字段接口

chenxiqiang 6 年之前
父節點
當前提交
dd743ffd69
共有 1 個檔案被更改,包括 4 行新增5 行删除
  1. 4
    5
      manage-server/routes/web.php

+ 4
- 5
manage-server/routes/web.php 查看文件

24
 
24
 
25
 Route::middleware(['manage.token'])->group(function () {
25
 Route::middleware(['manage.token'])->group(function () {
26
 
26
 
27
+    Route::post('/reward/price', 'RewardController@price');
28
+    Route::get('/reward/price', 'RewardController@getPrice');
29
+
27
     Route::get('/product/home', 'ProductController@home');
30
     Route::get('/product/home', 'ProductController@home');
28
     Route::post('/product/home', 'ProductController@setHome');
31
     Route::post('/product/home', 'ProductController@setHome');
29
     Route::post('/classify/home', 'ClassifyController@setHome');
32
     Route::post('/classify/home', 'ClassifyController@setHome');
35
     Route::get('/classify/{id}', 'ClassifyController@get');
38
     Route::get('/classify/{id}', 'ClassifyController@get');
36
     Route::get('/{order_type}/comments', 'CommonController@type_comments');
39
     Route::get('/{order_type}/comments', 'CommonController@type_comments');
37
     Route::post('/{order_type}/status', 'CommonController@status');
40
     Route::post('/{order_type}/status', 'CommonController@status');
38
-    Route::post('/{order_type}/price', 'CommonController@price')->where('order_type', '^[^r]');
41
+    Route::post('/{order_type}/price', 'CommonController@price');
39
     Route::get('/{order_type}/{id}', 'CommonController@get')->where('id', '[0-9]+');
42
     Route::get('/{order_type}/{id}', 'CommonController@get')->where('id', '[0-9]+');
40
     Route::delete('/{order_type}/{id}', 'CommonController@delete')->where('id', '[0-9]+');
43
     Route::delete('/{order_type}/{id}', 'CommonController@delete')->where('id', '[0-9]+');
41
 
44
 
68
     Route::post('/product_order/store', 'ProductOrderController@store');
71
     Route::post('/product_order/store', 'ProductOrderController@store');
69
     Route::post('/server_info/store', 'ServerInfoController@store');
72
     Route::post('/server_info/store', 'ServerInfoController@store');
70
 
73
 
71
-
72
-    Route::post('/reward/price', 'RewardController@price');
73
-    Route::get('/reward/price', 'RewardController@getPrice');
74
-
75
     Route::get('/introduce', 'HomePageController@introduce');
74
     Route::get('/introduce', 'HomePageController@introduce');
76
     Route::post('/introduce/store', 'HomePageController@store');
75
     Route::post('/introduce/store', 'HomePageController@store');
77
     Route::post('/bottom/store', 'HomePageController@bottom');
76
     Route::post('/bottom/store', 'HomePageController@bottom');

Loading…
取消
儲存