I have two routes which having same name with different method. one if POST method and other one for GET. For that i have created two separate function but GET Method can't call. Please let me know how to call this GET API ??
here is my code routes.php file code
use Phalcon\Mvc\Micro\Collection as MicroCollection;
$user = new MicroCollection();
$user->setHandler("Appix\Controllers\User", true);
$user->setPrefix("/users");
$user->get("/", "get");
$user->post("/", "create");
$app->mount($user);
User controller file code
public function create() { }
public function get() {
$appController = new AppController();
$this->response->set(['role' => $this->session->getRole(), 'apps_count' => $appController->getAppsCount()]);
return $this->response;
}