Add traps; user registration
This commit is contained in:
@@ -40,6 +40,14 @@ const auth_routes = {
|
||||
'controller::api:v1:Auth.validate_username'
|
||||
],
|
||||
|
||||
'/validate/user_exists': [
|
||||
'controller::api:v1:Auth.user_exists',
|
||||
],
|
||||
|
||||
'/validate/email': [
|
||||
'controller::api:v1:Auth.validate_email',
|
||||
],
|
||||
|
||||
'/attempt': [
|
||||
'controller::api:v1:Auth.attempt'
|
||||
],
|
||||
@@ -77,6 +85,12 @@ const auth_routes = {
|
||||
['middleware::api:Permission', { check: 'v1:auth:users:create' }],
|
||||
'controller::api:v1:Auth.create_user',
|
||||
],
|
||||
|
||||
'/registration': [
|
||||
['middleware::util:Setting', { key: 'auth.allow_registration' }],
|
||||
'middleware::auth:GuestOnly',
|
||||
'controller::api:v1:Auth.registration',
|
||||
],
|
||||
},
|
||||
|
||||
patch: {
|
||||
|
||||
Reference in New Issue
Block a user