chore: lots of changes
This commit is contained in:
21
src/Application/Api/IrkEndpoint.php
Normal file
21
src/Application/Api/IrkEndpoint.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Application\Api;
|
||||
|
||||
use App\Framework\Attributes\Route;
|
||||
use App\Framework\Router\ActionResult;
|
||||
|
||||
class IrkEndpoint
|
||||
{
|
||||
#[Route(method: 'GET', path: '/irk-impressum')]
|
||||
public function impressum()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#[Route(method: 'GET', path: '/irk-datenschutz')]
|
||||
public function datenschutz()
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
16
src/Application/EPK/ShowEpk.php
Normal file
16
src/Application/EPK/ShowEpk.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Application\EPK;
|
||||
|
||||
use App\Framework\Attributes\Route;
|
||||
use App\Framework\Router\ActionResult;
|
||||
use App\Framework\Router\ResultType;
|
||||
|
||||
class ShowEpk
|
||||
{
|
||||
#[Route(path: '/epk')]
|
||||
public function epk(): ActionResult
|
||||
{
|
||||
return new ActionResult(ResultType::Html, 'epk', ['text' => 'EPK!']);
|
||||
}
|
||||
}
|
||||
33
src/Application/Website/ShowHome.php
Normal file
33
src/Application/Website/ShowHome.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Application\Website;
|
||||
|
||||
use App\Framework\Attributes\Route;
|
||||
use App\Framework\Http\Request;
|
||||
use App\Framework\Router\ActionResult;
|
||||
use App\Framework\Router\ResultType;
|
||||
|
||||
class ShowHome
|
||||
{
|
||||
#[Route(method: 'GET', path: '/')]
|
||||
public function __invoke(): ActionResult
|
||||
{
|
||||
return new ActionResult(
|
||||
ResultType::Html,
|
||||
'test',
|
||||
['name' => 'Michael','title' => 'HalloWeltTitel'],
|
||||
);
|
||||
}
|
||||
|
||||
#[Route(method: 'GET', path: '/epk')]
|
||||
public function impressum(string $test = 'hallo'): ActionResult
|
||||
{
|
||||
return new ActionResult(
|
||||
ResultType::Plain,
|
||||
'test',
|
||||
['text' => 'EPK!'],
|
||||
);
|
||||
}
|
||||
}
|
||||
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