Upgraded multiple dependencies to their latest versions to ensure compatibility, address bug fixes, and incorporate new features. Notable updates include `aws/aws-sdk-php`, `guzzlehttp/guzzle`, `illuminate/*`, and several others.
26 lines
540 B
PHP
26 lines
540 B
PHP
<?php
|
|
|
|
namespace routes;
|
|
|
|
use classes\entra;
|
|
use traits\route_t;
|
|
|
|
class exampleRoute
|
|
{
|
|
use route_t;
|
|
|
|
public function run(): void
|
|
{
|
|
$this->get('/example', function () {
|
|
global $response;
|
|
$response->success(['message' => 'Hello World!']);
|
|
});
|
|
|
|
$this->get('/debug', function () {
|
|
global $response;
|
|
$entra = new entra();
|
|
$GraphClient = $entra->getGraphClient();
|
|
$response->success(['message' => 'Debugging route!']);
|
|
});
|
|
}
|
|
} |