Add proper endpoints for login & register

This commit is contained in:
Michał Romaszkin 2020-11-08 20:53:42 +01:00
parent baf93a87f0
commit 9d5fdcfacd

View File

@ -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',