mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 04:27:46 +02:00
refactor(modules): extract castopod parts into a modules/ folder for a scalable HMVC structure
- create Admin, Analytics, Auth, Fediverse and Install modules in the root modules/ folder - rename ActivityPub to Fediverse
This commit is contained in:
parent
94872f2338
commit
5083cd2fda
268 changed files with 4221 additions and 2186 deletions
43
modules/Admin/Controllers/FediverseController.php
Normal file
43
modules/Admin/Controllers/FediverseController.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
|
||||
namespace Modules\Admin\Controllers;
|
||||
|
||||
class FediverseController extends BaseController
|
||||
{
|
||||
public function dashboard(): string
|
||||
{
|
||||
return view('Modules\Admin\Views\fediverse\dashboard');
|
||||
}
|
||||
|
||||
public function blockedActors(): string
|
||||
{
|
||||
helper(['form']);
|
||||
|
||||
$blockedActors = model('ActorModel')
|
||||
->getBlockedActors();
|
||||
|
||||
return view('Modules\Admin\Views\fediverse\blocked_actors', [
|
||||
'blockedActors' => $blockedActors,
|
||||
]);
|
||||
}
|
||||
|
||||
public function blockedDomains(): string
|
||||
{
|
||||
helper(['form']);
|
||||
|
||||
$blockedDomains = model('BlockedDomainModel')
|
||||
->getBlockedDomains();
|
||||
|
||||
return view('Modules\Admin\Views\fediverse\blocked_domains', [
|
||||
'blockedDomains' => $blockedDomains,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue