Add proper endpoints for login & register
This commit is contained in:
parent
baf93a87f0
commit
9d5fdcfacd
@ -47,8 +47,9 @@ import { EffectsModule } from '@ngrx/effects';
|
||||
name: 'email',
|
||||
baseEndpoint: 'http://127.0.0.1:8000',
|
||||
login: {
|
||||
endpoint: '/login/',
|
||||
redirect: {
|
||||
success: '/view',
|
||||
success: '/my-profile',
|
||||
failure: null,
|
||||
},
|
||||
defaultErrors: ['Coś poszło nie tak, proszę spróbować ponownie.'],
|
||||
@ -57,7 +58,7 @@ import { EffectsModule } from '@ngrx/effects';
|
||||
class: NbAuthJWTToken,
|
||||
},
|
||||
register: {
|
||||
endpoint: '/user',
|
||||
endpoint: '/user/',
|
||||
method: 'post',
|
||||
redirect: {
|
||||
success: '/register-success',
|
||||
|
Loading…
Reference in New Issue
Block a user