add missing api endpoint (GET) /api/pages
This commit is contained in:
parent
73fabfd81b
commit
c0236aae77
1 changed files with 6 additions and 2 deletions
|
@ -152,8 +152,12 @@ class pluginAPI extends Plugin {
|
|||
// /api/pages/:key
|
||||
// /api/pages/:parent/:key
|
||||
|
||||
// (GET) /api/pages/files/:key
|
||||
if ( ($method==='GET') && ($parmA==='pages') && ($parmB==='files') && !empty($parmC) ) {
|
||||
// (GET) /api/pages
|
||||
if ( ($method==='GET') && ($parmA==='pages') && empty($parmB) ) {
|
||||
$data = $this->getPages($inputs);
|
||||
}
|
||||
// (GET) /api/pages/files/:key
|
||||
elseif ( ($method==='GET') && ($parmA==='pages') && ($parmB==='files') && !empty($parmC) ) {
|
||||
$key = $parmC;
|
||||
if (!empty($parmD)) {
|
||||
$key = $parmC.'/'.$parmD;
|
||||
|
|
Loading…
Add table
Reference in a new issue