Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
Controller: always return a response
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-c committed Apr 15, 2016
1 parent eebdbb9 commit d753fd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/index.php
Expand Up @@ -218,6 +218,8 @@ public function get($s) {
$m->circular->posts->remove(array('_id' => $post['_id']));
}
}

return $app->json(["success" => true]);
})
->assert('id', '\w{24}');

Expand Down

0 comments on commit d753fd8

Please sign in to comment.