2024-07-15 19:54:50 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class GateModule
|
|
|
|
{
|
2024-07-16 21:51:20 -05:00
|
|
|
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']);
|
|
|
|
}
|
2024-07-15 19:54:50 -05:00
|
|
|
}
|