mobilebackendgateway/app/Http/Controllers/MobileBackendController.php

36 lines
798 B
PHP
Executable File

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