From 5578dbaa833007f4b1ce36cbcba8a28586c877fb Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 11 Nov 2023 06:31:28 +0100 Subject: [PATCH] news/id route --- system/routes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/routes.php b/system/routes.php index 53c121a5..3bb2a0df 100644 --- a/system/routes.php +++ b/system/routes.php @@ -12,6 +12,7 @@ defined('MYAAC') or die('Direct access not allowed!'); return [ ['GET', '', 'news.php'], // empty URL = show news ['GET', 'news/archive/{id:int}[/]', 'news/archive.php'], + ['GET', 'news/{id:int}[/]', 'news/archive.php'], // block access to some files ['*', 'account/base[/]', '404.php'], // this is to block account/base.php