ユーザー
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user