From b38bbf33664383bd2db07370d63c4458aa293846 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 10 Aug 2021 12:02:18 +0300 Subject: [PATCH] feat(endpoints): add utils endpoints routes #565 --- src/flextype/flextype.php | 1 + src/flextype/routes/endpoints/utils.php | 26 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/flextype/routes/endpoints/utils.php diff --git a/src/flextype/flextype.php b/src/flextype/flextype.php index 42f21d3d..dad8fa86 100644 --- a/src/flextype/flextype.php +++ b/src/flextype/flextype.php @@ -447,6 +447,7 @@ plugins()->init(); /** * Include API ENDPOINTS */ +require_once ROOT_DIR . '/src/flextype/routes/endpoints/utils.php'; //include_once ROOT_DIR . '/src/flextype/Endpoints/errors.php'; //include_once ROOT_DIR . '/src/flextype/Endpoints/images.php'; //include_once ROOT_DIR . '/src/flextype/Endpoints/utils.php'; diff --git a/src/flextype/routes/endpoints/utils.php b/src/flextype/routes/endpoints/utils.php new file mode 100644 index 00000000..43a64ea3 --- /dev/null +++ b/src/flextype/routes/endpoints/utils.php @@ -0,0 +1,26 @@ +post('/api/utils/cache/clear', [Utils::class, 'clearCache']); \ No newline at end of file