|
|
|
|
@ -126,8 +126,6 @@ Route::group(["namespace" => "Admin", "prefix" => "admin"], function () {
|
|
|
|
|
Route::group(["namespace" => "Customer", "prefix" => "customer"], function () {
|
|
|
|
|
Route::post('login', 'AuthController@login');
|
|
|
|
|
Route::post('get-phone-by-openid', 'AuthController@getPhoneByOpenid');
|
|
|
|
|
Route::post('mobile', 'AuthController@mobile');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Route::post('logout', 'AuthController@logout');
|
|
|
|
|
Route::post('refresh', 'AuthController@refresh');
|
|
|
|
|
@ -140,6 +138,8 @@ Route::group(["namespace" => "Customer", "prefix" => "customer"], function () {
|
|
|
|
|
Route::get('get-orders-count', 'PublicController@getOrdersCount');
|
|
|
|
|
|
|
|
|
|
Route::group(['middleware' => ['authorize.jwt:customer']], function () {
|
|
|
|
|
Route::post('mobile', 'AuthController@mobile');
|
|
|
|
|
|
|
|
|
|
Route::post('update-user', 'OrdersController@updateUser');
|
|
|
|
|
Route::get('get-product-by-project/{id}', 'OrdersController@getProductByProject');
|
|
|
|
|
Route::get('get-areas-by-project/{id}', 'OrdersController@getAreasByProject');
|
|
|
|
|
|