19 lines
349 B
PHP
19 lines
349 B
PHP
<?php
|
|
|
|
class GateModule
|
|
{
|
|
private const GUEST = ['login', 'register'];
|
|
|
|
public static function handle()
|
|
{
|
|
$s = App::$req->uri(1) ?? ''; // second segment
|
|
$m = App::$req->method; // request method
|
|
|
|
if ($s == '' || $s == 'login') return self::login();
|
|
}
|
|
|
|
public static function login()
|
|
{
|
|
echo render('layout', ['title' => 'Login']);
|
|
}
|
|
} |