16 lines
348 B
PHP
16 lines
348 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use Ardent\Undercurrent\Attribute\Route;
|
|
use Ardent\Undercurrent\Http\GenericResponse;
|
|
use Ardent\Undercurrent\Http\ResponseInterface;
|
|
|
|
class BaseController
|
|
{
|
|
#[Route('/hello')]
|
|
public function helloWorld(): ResponseInterface
|
|
{
|
|
return new GenericResponse('Hello World!');
|
|
}
|
|
} |