diff --git a/etc/config.example.php b/etc/config.example.php index ef0827c..35fc56d 100644 --- a/etc/config.example.php +++ b/etc/config.example.php @@ -10,3 +10,5 @@ define('HOSTAS_UNIX_USER', 'www-data'); define('HOSTAS_ACCESS_LIST', array( 'example.org' => HOSTAS_ACCESS_LEVEL->trusted )); + +define('HOSTAS_MAX_POSTS_PER_PAGE', 50); diff --git a/public/api/v1/router.php b/public/api/v1/router.php index fff0c0c..ad0b31f 100644 --- a/public/api/v1/router.php +++ b/public/api/v1/router.php @@ -1,9 +1,12 @@ ['', 'api', 'v1', 'test', 'request']. // For convenience later, we take a slice that excludes ['', 'api', 'v1']. -define('REQUEST_PATH', array_slice(explode('/', $_SERVER['REQUEST_URI']), offset: 3)); +define('REQUEST_PATH', array_slice(explode('/', $clean_uri), offset: 3)); switch (REQUEST_PATH[0]) { case 'actor': // /api/v1/actor