forked from projects/fipamo
31 lines
682 B
PHP
31 lines
682 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\API;
|
||
|
|
||
|
use App\Http\Controllers\Controller;
|
||
|
use App\Services\AuthService;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class PageAPIController extends Controller
|
||
|
{
|
||
|
public function __construct(
|
||
|
AuthService $authService
|
||
|
) {
|
||
|
$this->auth = $authService;
|
||
|
}
|
||
|
|
||
|
public function write(Request $request)
|
||
|
{
|
||
|
$body = json_decode($request->getContent());
|
||
|
//var_dump($body);
|
||
|
|
||
|
$result = [
|
||
|
'message' => 'API IS CONNECTED',
|
||
|
'type' => 'apiTesting',
|
||
|
'uuid' => $body->uuid,
|
||
|
];
|
||
|
|
||
|
return response()->json($result)->header('Content-Type', 'application/json');
|
||
|
}
|
||
|
}
|