Skip to content

Commit

Permalink
Merge pull request #1 from rene-bos/hello-world
Browse files Browse the repository at this point in the history
Add /hello-world
  • Loading branch information
rene-bos authored Jan 12, 2022
2 parents bbf1262 + c40e303 commit 3f5c9c5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Controller/HelloWorldController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

namespace App\Controller;

use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

final class HelloWorldController
{
#[Route('/hello-world')]
public function helloWorld(): Response
{
return new Response(
'<html><body>Hello, world!</body></html>'
);
}
}

0 comments on commit 3f5c9c5

Please sign in to comment.