add missing api endpoint (GET) /api/pages
This commit is contained in:
parent
9a2ac1eaf4
commit
76e85f4082
1 changed files with 5 additions and 1 deletions
|
@ -149,8 +149,12 @@ class pluginAPI extends Plugin {
|
|||
// /api/pages/:key
|
||||
// /api/pages/:parent/:key
|
||||
|
||||
// (GET) /api/pages
|
||||
if ( ($method==='GET') && ($parmA==='pages') && empty($parmB) ) {
|
||||
$data = $this->getPages($inputs);
|
||||
}
|
||||
// (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;
|
||||
if (!empty($parmD)) {
|
||||
$key = $parmC.'/'.$parmD;
|
||||
|
|
Loading…
Reference in a new issue