chore: lots of changes
This commit is contained in:
32
src/Application/Website/ShowImpressum.php
Normal file
32
src/Application/Website/ShowImpressum.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Application\Website;
|
||||
|
||||
use App\Framework\Attributes\Route;
|
||||
use App\Framework\Router\ActionResult;
|
||||
use App\Framework\Router\ResultType;
|
||||
|
||||
class ShowImpressum
|
||||
{
|
||||
#[Route(method: 'GET', path: '/impressum')]
|
||||
public function impressum(string $test = 'hallo'): ActionResult
|
||||
{
|
||||
return new ActionResult(
|
||||
ResultType::Html,
|
||||
'impressum',
|
||||
['text' => 'Hallo Welt!'],
|
||||
);
|
||||
}
|
||||
|
||||
#[Route(method: 'GET', path: '/datenschutz')]
|
||||
public function datenschutz(string $test = 'hallo'): ActionResult
|
||||
{
|
||||
return new ActionResult(
|
||||
ResultType::Html,
|
||||
'impressum',
|
||||
['title' => 'Datenschutz!'],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user