[Ivan Diaz] - Add signup controller
This commit is contained in:
parent
18d0818806
commit
400de7e480
|
@ -3,7 +3,6 @@
|
|||
class LoginController extends Controller {
|
||||
const PATH = '/login';
|
||||
|
||||
|
||||
public function handler() {
|
||||
$email = Controller::request('email');
|
||||
$password = Controller::request('password');
|
||||
|
@ -20,4 +19,4 @@ class LoginController extends Controller {
|
|||
}
|
||||
}
|
||||
|
||||
$controllerGroup->addController(new LoginController());
|
||||
$controllerGroup->addController(new LoginController);
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
/*$controllerGroup->addController('/signup', function () {
|
||||
|
||||
class SignUpController extends Controller {
|
||||
const PATH = '/signup';
|
||||
|
||||
public function handler() {
|
||||
$email = Controller::request('email');
|
||||
$password = Controller::request('password');
|
||||
|
||||
|
@ -14,5 +18,7 @@
|
|||
Response::respondSuccess(array(
|
||||
'id' => $id
|
||||
));
|
||||
});
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
$controllerGroup->addController(new SignUpController);
|
Loading…
Reference in New Issue