From c7964f4d526c41cec2b8242c3835487de833f763 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 19 Aug 2021 21:15:10 +0300 Subject: [PATCH] feat(flextype): fix endpoints includes --- src/flextype/flextype.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/flextype/flextype.php b/src/flextype/flextype.php index 4c5b58e9..925d98d1 100644 --- a/src/flextype/flextype.php +++ b/src/flextype/flextype.php @@ -371,7 +371,7 @@ container()->set('images', static function () { $manipulators = [ new Orientation(), new Crop(), - new Size(2000 * 2000), + new Size(), new Brightness(), new Contrast(), new Gamma(), @@ -437,17 +437,13 @@ if (in_array(registry()->get('flextype.settings.timezone'), DateTimeZone::listId // Init Plugins plugins()->init(); -/** - * Include API ENDPOINTS - */ + +// Include API ENDPOINTS require_once ROOT_DIR . '/src/flextype/routes/endpoints/utils.php'; require_once ROOT_DIR . '/src/flextype/routes/endpoints/images.php'; -require_once ROOT_DIR . '/src/flextype/routes/endpoints/content.php'; -require_once ROOT_DIR . '/src/flextype/routes/endpoints/media.php'; -require_once ROOT_DIR . '/src/flextype/routes/endpoints/tokens.php'; +require_once ROOT_DIR . '/src/flextype/routes/endpoints/entries.php'; require_once ROOT_DIR . '/src/flextype/routes/endpoints/registry.php'; - // Enable lazy CORS // // CORS (Cross-origin resource sharing) allows JavaScript web apps to make HTTP requests to other domains.