diff --git a/src/Controllers/SampleController.php b/src/Controllers/HomeController.php similarity index 85% rename from src/Controllers/SampleController.php rename to src/Controllers/HomeController.php index 6d8d220..4dc2505 100644 --- a/src/Controllers/SampleController.php +++ b/src/Controllers/HomeController.php @@ -8,7 +8,7 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Log\LoggerInterface; use Slim\Views\Twig; -class SampleController +class HomeController { public function __construct( private readonly Twig $view, @@ -17,7 +17,7 @@ class SampleController public function get(ServerRequestInterface $request, ResponseInterface $response) { - $this->logger->info("SampleController::get() called"); + $this->logger->info("HomeController::get() called"); return $this->view->render($response, 'index.twig.html'); } } \ No newline at end of file diff --git a/src/app.php b/src/app.php index 4fc8ea6..f8366a8 100644 --- a/src/app.php +++ b/src/app.php @@ -1,10 +1,10 @@ add(TwigMiddleware::createFromContainer($app)); $app->add('csrf'); -$app->get("/", [SampleController::class, 'get']); +$app->get("/", [HomeController::class, 'get']); $app->get('/feed', [FeedController::class, 'get']); diff --git a/views/index.twig.html b/views/index.twig.html index 1815a0c..bde6895 100644 --- a/views/index.twig.html +++ b/views/index.twig.html @@ -1,4 +1,7 @@ -

Hello, world.

+

Baleen

-

This is a boilerplate PHP app. You should start by adding some routes, controllers, and maybe making me look - good.

\ No newline at end of file +

This is Baleen, an RSS and Podcast feed filtering application. If you're here because you've spotted the user agent in your logs, it's because someone is using this application to produce a filtered RSS feed.

+ +

Baleen will always use the user agent Baleen/1.0 (https://baleen.lewisdale.dev), and should respect robots.txt.

+ +

If you're blocking Baleen, but we're still appearing in your logs, please get in touch with the developer, as this is likely a bug in the software.

\ No newline at end of file