Commit 6ae0cce231d979cf6b4f990d4d5a1f8257eaa5ce
1 parent
5d5b970b
user registration
Showing
1 changed file
with
1 additions
and
6 deletions
Show diff stats
app/library/App/Controllers/UserController.php
... | ... | @@ -44,12 +44,7 @@ class UserController extends CrudResourceController |
44 | 44 | |
45 | 45 | public function registration() { |
46 | 46 | |
47 | - return [ | |
48 | - 'firstName', | |
49 | - 'lastName', | |
50 | - 'password' | |
51 | - ]; | |
52 | - return json_encode($this->create()); | |
47 | + return $this->createResponse($this->create()); | |
53 | 48 | |
54 | 49 | } |
55 | 50 | ... | ... |