rest controller
This commit is contained in:
1 parent
810ca49de4
commit
d49416a7d2
10 files changed
+282
-4
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user