Merge branch 'bludit:main' into main
This commit is contained in:
commit
c6400d66f5
1 changed files with 5 additions and 1 deletions
|
@ -149,8 +149,12 @@ class pluginAPI extends Plugin {
|
||||||
// /api/pages/:key
|
// /api/pages/:key
|
||||||
// /api/pages/:parent/:key
|
// /api/pages/:parent/:key
|
||||||
|
|
||||||
|
// (GET) /api/pages
|
||||||
|
if ( ($method==='GET') && ($parmA==='pages') && empty($parmB) ) {
|
||||||
|
$data = $this->getPages($inputs);
|
||||||
|
}
|
||||||
// (GET) /api/pages/files/:key
|
// (GET) /api/pages/files/:key
|
||||||
if ( ($method==='GET') && ($parmA==='pages') && ($parmB==='files') && !empty($parmC) ) {
|
elseif ( ($method==='GET') && ($parmA==='pages') && ($parmB==='files') && !empty($parmC) ) {
|
||||||
$key = $parmC;
|
$key = $parmC;
|
||||||
if (!empty($parmD)) {
|
if (!empty($parmD)) {
|
||||||
$key = $parmC.'/'.$parmD;
|
$key = $parmC.'/'.$parmD;
|
||||||
|
|
Loading…
Reference in a new issue