This commit is contained in:
Shish
2020-01-26 16:38:13 +00:00
parent 6cc7124069
commit 60dda96fd2
6 changed files with 5 additions and 19 deletions

View File

@ -390,8 +390,7 @@ class OuroborosAPI extends Extension
$this->sendResponse(403, 'You cannot create new posts');
}
} elseif ($this->match('update')) {
// Update
//@todo add post update
throw new SCoreException("update not implemented");
} elseif ($this->match('show')) {
// Show
$id = !empty($_REQUEST['id']) ? filter_var($_REQUEST['id'], FILTER_SANITIZE_NUMBER_INT) : null;