36 lines
		
	
	
		
			842 B
		
	
	
	
		
			PHP
		
	
	
	
		
		
			
		
	
	
			36 lines
		
	
	
		
			842 B
		
	
	
	
		
			PHP
		
	
	
	
|  | <?php | ||
|  | 
 | ||
|  | namespace App\Http\Controllers; | ||
|  | 
 | ||
|  | use App\Services\MobileBackendTestService; | ||
|  | use App\Traits\ApiResponser; | ||
|  | use Illuminate\Http\Request; | ||
|  | use Illuminate\Http\Response; | ||
|  | 
 | ||
|  | class MobileBackendTestController extends Controller | ||
|  | { | ||
|  |     use ApiResponser; | ||
|  |     /** | ||
|  |      * @var MobileBackendTestService | ||
|  |      */ | ||
|  |     public $mobilebackendtestService; | ||
|  | 
 | ||
|  |     /** | ||
|  |      * Create a new controller instance. | ||
|  |      * | ||
|  |      * @param MobileBackendTestService $mobilebackendtestService | ||
|  |      */ | ||
|  |     public function __construct(MobileBackendTestService $mobilebackendtestService) | ||
|  |     { | ||
|  |         $this->mobilebackendtestService = $mobilebackendtestService; | ||
|  |     } | ||
|  | 
 | ||
|  |     public function action(Request $request) | ||
|  |     { | ||
|  |         return $this->successResponse($this->mobilebackendtestService->action( | ||
|  |             $request->getRequestUri(), $request->all() | ||
|  |         )); | ||
|  |     } | ||
|  | 
 | ||
|  | } |