Commit 3582f649b696ef5413e77ce1e3723d2ec36a4927
1 parent
fc76b396
registration
Showing
2 changed files
with
9 additions
and
0 deletions
Show diff stats
app/library/App/Controllers/UserController.php
app/library/App/Resources/UserResource.php
... | ... | @@ -39,6 +39,11 @@ class UserResource extends ApiResource { |
39 | 39 | 'token' => 'co126bbm40wqp41i3bo7pj1gfsvt9lp6', |
40 | 40 | 'expires' => 1451139067 |
41 | 41 | ]) |
42 | + ) | |
43 | + ->endpoint(ApiEndpoint::post('/register', 'register') | |
44 | + ->allow(AclRoles::UNAUTHORIZED) | |
45 | + ->deny(AclRoles::AUTHORIZED) | |
46 | + ->description('Register new user') | |
42 | 47 | ); |
43 | 48 | } |
44 | 49 | } |
45 | 50 | \ No newline at end of file | ... | ... |