From e0fa0b97051373732d22a029f18ef6c5beaa56c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sava=20Gavri=C4=87?= Date: Mon, 28 Mar 2022 10:37:53 +0200 Subject: [PATCH] Move initial router code from index.php to /src/bootstrap.php. Issue MIDU-177 --- index.php | 9 +-------- src/bootstrap.php | 21 ++++++++------------- src/session.php | 15 +++++++++++++++ 3 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 src/session.php diff --git a/index.php b/index.php index 6f77060..2626be2 100755 --- a/index.php +++ b/index.php @@ -1,10 +1,3 @@ route($request_path); \ No newline at end of file +require 'src/bootstrap.php'; \ No newline at end of file diff --git a/src/bootstrap.php b/src/bootstrap.php index caafed5..0205c42 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -1,15 +1,10 @@ route($request_path); \ No newline at end of file diff --git a/src/session.php b/src/session.php new file mode 100644 index 0000000..4cfaa22 --- /dev/null +++ b/src/session.php @@ -0,0 +1,15 @@ +