diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-07-08 21:47:20 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-07-08 21:47:20 +0100 |
| commit | ea1269577fcd9d9b05f4b29ae2ad0d7c4c9a6ca2 (patch) | |
| tree | 1042a5c01b93e5786a626343b19e6d5ad4275d48 /public | |
| parent | 1155220fd5c94fa9769c55597575437581170c16 (diff) | |
Shorten urls
Diffstat (limited to 'public')
| -rw-r--r-- | public/add/index.php (renamed from public/bookmarks/add/index.php) | 4 | ||||
| -rw-r--r-- | public/read/index.php (renamed from public/bookmarks/read/index.php) | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/public/bookmarks/add/index.php b/public/add/index.php index f387bc6..12119b6 100644 --- a/public/bookmarks/add/index.php +++ b/public/add/index.php @@ -2,9 +2,9 @@ error_reporting(E_ALL); -require_once(__DIR__.'/../../../includes/functions.php'); +require_once(__DIR__.'/../../includes/functions.php'); -$config = require_once(__DIR__.'/../../../config.php'); +$config = require_once(__DIR__.'/../../config.php'); if ('OPTIONS' === filter_input(INPUT_SERVER, 'REQUEST_METHOD')) { respondAndExit(200, 'OK', [ diff --git a/public/bookmarks/read/index.php b/public/read/index.php index 6a4a216..87857da 100644 --- a/public/bookmarks/read/index.php +++ b/public/read/index.php @@ -2,9 +2,9 @@ error_reporting(E_ALL); -require_once('../../../includes/functions.php'); +require_once(__DIR__.'/../../includes/functions.php'); -$config = require_once('../../../config.php'); +$config = require_once(__DIR__.'/../../config.php'); if ('GET' !== filter_input(INPUT_SERVER, 'REQUEST_METHOD')) { respondAndExit(405, 'Method Not Allowed'); |
