aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/app/public
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-01-17 02:11:31 +0900
committernsfisis <nsfisis@gmail.com>2024-01-17 02:11:31 +0900
commitdeacd0dfc195bca41af631114804d29937337cd8 (patch)
treef1f83580e5bc892c0794ac41632bc0cce3498f65 /services/app/public
parent38ddeb28ec846ee966d0fe6873585d697a9ef373 (diff)
downloadphperkaigi-2024-albatross-deacd0dfc195bca41af631114804d29937337cd8.tar.gz
phperkaigi-2024-albatross-deacd0dfc195bca41af631114804d29937337cd8.tar.zst
phperkaigi-2024-albatross-deacd0dfc195bca41af631114804d29937337cd8.zip
.
Diffstat (limited to 'services/app/public')
-rw-r--r--services/app/public/.htaccess5
-rw-r--r--services/app/public/index.php10
2 files changed, 15 insertions, 0 deletions
diff --git a/services/app/public/.htaccess b/services/app/public/.htaccess
new file mode 100644
index 0000000..8661356
--- /dev/null
+++ b/services/app/public/.htaccess
@@ -0,0 +1,5 @@
+RewriteEngine On
+
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^ index.php [QSA,L]
diff --git a/services/app/public/index.php b/services/app/public/index.php
new file mode 100644
index 0000000..4461970
--- /dev/null
+++ b/services/app/public/index.php
@@ -0,0 +1,10 @@
+<?php
+
+declare(strict_types=1);
+
+require __DIR__ . '/../vendor/autoload.php';
+
+use Nsfisis\Albatross\App;
+use Nsfisis\Albatross\Config;
+
+(new App(Config::fromEnvVars()))->run();