1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 21:56:33 +02:00

feat(endpoints): code styles and format updates #565

This commit is contained in:
Awilum
2021-08-14 17:35:02 +03:00
parent 98711549fb
commit 86f03cd11c
6 changed files with 15 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ namespace Flextype;
use Flextype\Endpoints\Content;
use function app;
/**
* Fetch content
*

View File

@@ -11,6 +11,8 @@ namespace Flextype;
use Flextype\Endpoints\Images;
use function app;
/**
* Fetch image
*
@@ -25,4 +27,4 @@ use Flextype\Endpoints\Images;
* Returns:
* Image file
*/
app()->get('/api/images/{path:.+}', [Images::class, 'fetch']);
app()->get('/api/images/{path:.+}', [Images::class, 'fetch']);

View File

@@ -11,6 +11,8 @@ namespace Flextype;
use Flextype\Endpoints\Media;
use function app;
/**
* Fetch media
*

View File

@@ -11,6 +11,8 @@ namespace Flextype;
use Flextype\Endpoints\Registry;
use function app;
/**
* Get registry item
*
@@ -24,4 +26,4 @@ use Flextype\Endpoints\Registry;
* Returns:
* An array of registry objects.
*/
app()->get('/api/registry', [Registry::class, 'get']);
app()->get('/api/registry', [Registry::class, 'get']);

View File

@@ -11,6 +11,8 @@ namespace Flextype;
use Flextype\Endpoints\Tokens;
use function app;
/**
* Fetch token
*

View File

@@ -11,6 +11,8 @@ namespace Flextype;
use Flextype\Endpoints\Utils;
use function app;
/**
* Clear cache
*
@@ -23,4 +25,4 @@ use Flextype\Endpoints\Utils;
* Returns:
* Returns an empty body with HTTP status 204
*/
app()->post('/api/utils/cache/clear', [Utils::class, 'clearCache']);
app()->post('/api/utils/cache/clear', [Utils::class, 'clearCache']);