32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Basango\SharedKernel\Presentation\Web\Controller;
|
|
|
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
|
use Symfony\Component\Routing\Attribute\Route;
|
|
|
|
/**
|
|
* Class DefaultController.
|
|
*
|
|
* @author bernard-ng <bernard@devscast.tech>
|
|
*/
|
|
final class DefaultController extends AbstractController
|
|
{
|
|
#[Route(
|
|
path: '',
|
|
name: 'default',
|
|
methods: ['GET']
|
|
)]
|
|
public function __invoke(): JsonResponse
|
|
{
|
|
return $this->json([
|
|
'repository' => 'https://github.com/bernard-ng/basango',
|
|
'title' => 'Basango : Towards a scalable and intelligent system for Congolese News curation',
|
|
'description' => 'The Basango is a structured and scalable dataset of news articles sourced from major media outlets covering diverse aspects of the Democratic Republic of Congo (DRC). Designed for efficiency, this system enables the automated collection, processing, and organization of news stories spanning politics, economy, society, culture, environment, and international affairs.',
|
|
'status' => 200,
|
|
]);
|
|
}
|
|
}
|