rest controller

This commit is contained in:
2024-09-26 14:47:13 +03:00
parent 810ca49de4
commit d49416a7d2
10 changed files with 282 additions and 4 deletions

View File

@ -6,7 +6,7 @@ use Phroute\Phroute\RouteCollector;
App::$collector->filter("auth", function (){
if(!isset($_COOKIE['user_id']))
{
header('Location: /admin/login');
header('Location: /admin/login', true, 302);
return false;
}