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:
@@ -11,6 +11,8 @@ namespace Flextype;
|
||||
|
||||
use Flextype\Endpoints\Content;
|
||||
|
||||
use function app;
|
||||
|
||||
/**
|
||||
* Fetch content
|
||||
*
|
||||
|
@@ -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']);
|
||||
|
@@ -11,6 +11,8 @@ namespace Flextype;
|
||||
|
||||
use Flextype\Endpoints\Media;
|
||||
|
||||
use function app;
|
||||
|
||||
/**
|
||||
* Fetch media
|
||||
*
|
||||
|
@@ -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']);
|
||||
|
@@ -11,6 +11,8 @@ namespace Flextype;
|
||||
|
||||
use Flextype\Endpoints\Tokens;
|
||||
|
||||
use function app;
|
||||
|
||||
/**
|
||||
* Fetch token
|
||||
*
|
||||
|
@@ -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']);
|
||||
|
Reference in New Issue
Block a user