feat(ApiAware): implement it
This commit is contained in:
parent
40b529a6ea
commit
155ab21f26
@ -7,6 +7,7 @@ use PicoContentEditor\Auth;
|
|||||||
use PicoContentEditor\Edits;
|
use PicoContentEditor\Edits;
|
||||||
use PicoContentEditor\Uploads;
|
use PicoContentEditor\Uploads;
|
||||||
use PicoContentEditor\EditorsHandlers\ContentTools;
|
use PicoContentEditor\EditorsHandlers\ContentTools;
|
||||||
|
use SeaCMS\Api\ApiAware;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A content editor plugin for Pico 3, using ContentTools.
|
* A content editor plugin for Pico 3, using ContentTools.
|
||||||
@ -19,7 +20,7 @@ use PicoContentEditor\EditorsHandlers\ContentTools;
|
|||||||
* @link https://github.com/nliautaud/pico-content-editor
|
* @link https://github.com/nliautaud/pico-content-editor
|
||||||
* @link http://picocms.org
|
* @link http://picocms.org
|
||||||
*/
|
*/
|
||||||
class PicoContentEditor extends AbstractPicoPlugin
|
class PicoContentEditor extends AbstractPicoPlugin implements ApiAware
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Pico API version.
|
* Pico API version.
|
||||||
@ -43,6 +44,16 @@ class PicoContentEditor extends AbstractPicoPlugin
|
|||||||
*/
|
*/
|
||||||
private $uploads;
|
private $uploads;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* return api routes
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function registerOnPageRenderedApiRoutes():array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Init plugin, process page edits and file uploads.
|
* Init plugin, process page edits and file uploads.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user