fipamo/app/Http/Controllers/API/PageAPIController.php

31 lines
682 B
PHP
Raw Normal View History

<?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');
}
}