From 74cb1477bb921a2378ea22a552b71a48c11e0931 Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Fri, 20 Jul 2018 16:34:32 +0200
Subject: Better API (integrated oauth completely)
---
public/.htaccess | 13 ++++++-------
public/favicon.ico | 0
public/index.php | 8 +++-----
public/web.config | 23 +++++++++++++++++++++++
4 files changed, 32 insertions(+), 12 deletions(-)
delete mode 100644 public/favicon.ico
create mode 100644 public/web.config
(limited to 'public')
diff --git a/public/.htaccess b/public/.htaccess
index b75525b..903f639 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1,21 +1,20 @@
- Options -MultiViews -Indexes
+ Options -MultiViews
RewriteEngine On
- # Handle Authorization Header
- RewriteCond %{HTTP:Authorization} .
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
-
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} (.+)/$
- RewriteRule ^ %1 [L,R=301]
+ RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
+
+ # Handle Authorization Header
+ RewriteCond %{HTTP:Authorization} .
+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
diff --git a/public/favicon.ico b/public/favicon.ico
deleted file mode 100644
index e69de29..0000000
diff --git a/public/index.php b/public/index.php
index 4584cbc..c582053 100644
--- a/public/index.php
+++ b/public/index.php
@@ -4,11 +4,9 @@
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
- * @author Taylor Otwell
+ * @author Taylor Otwell
*/
-define('LARAVEL_START', microtime(true));
-
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
@@ -17,11 +15,11 @@ define('LARAVEL_START', microtime(true));
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
-| loading any of our classes later on. It feels great to relax.
+| loading any of our classes later on. It feels nice to relax.
|
*/
-require __DIR__.'/../vendor/autoload.php';
+require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
diff --git a/public/web.config b/public/web.config
new file mode 100644
index 0000000..624c176
--- /dev/null
+++ b/public/web.config
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.2.3