ユーザー

This commit is contained in:
2025-12-07 20:23:29 +09:00
parent 4f70e6d4e4
commit d5428d7514
11 changed files with 476 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ use Site\Controller\Fediverse;
use Site\Controller\Home;
use Site\Controller\Notfound;
use Site\Controller\Page;
use Site\Controller\User;
define('ROOT', realpath(__DIR__));
@@ -35,6 +36,12 @@ if (ACTIVITYPUB_ENABLED) {
$routes[] = Route::add('GET', 'ap/actor', Fediverse::class.'@apactor');
}
if (AUTH_ENABLED) {
$routes[] = Route::add('POST', 'login', User::class.'@login');
$routes[] = Route::add('GET', 'login', User::class.'@login');
$routes[] = Route::add('GET', 'logout', User::class.'@logout');
}
/* if (RSS_ENABLED) {} */
if (ATOM_ENABLED) {