27.4.2. Modified public URLs for getting profile image - frontend (#27)
This commit is contained in:
@ -28,9 +28,8 @@ describe('AuthInterceptor', () => {
|
|||||||
expect(interceptor.isRequestUrlMatches('http://example.com:8080/user')).toBeFalsy();
|
expect(interceptor.isRequestUrlMatches('http://example.com:8080/user')).toBeFalsy();
|
||||||
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/login')).toBeFalsy();
|
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/login')).toBeFalsy();
|
||||||
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/register')).toBeFalsy();
|
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/register')).toBeFalsy();
|
||||||
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/image/profile/1234567/avatar.jpg')).toBeFalsy();
|
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/d470296c-97fb-44ce-9253-69f3331d7b77/profile-image/avatar.jpg')).toBeFalsy();
|
||||||
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/image/profile/1234567')).toBeFalsy();
|
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/d470296c-97fb-44ce-9253-69f3331d7b77/profile-image')).toBeFalsy();
|
||||||
expect(interceptor.isRequestUrlMatches('http://localhost:8080/user/art.shyshkin/image/profile')).toBeFalsy();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should intercept NON-public URLs', () => {
|
it('should intercept NON-public URLs', () => {
|
||||||
|
|||||||
@ -3,5 +3,5 @@ export const environment = {
|
|||||||
// apiUrl: 'http://support-portal.shyshkin.net:5000',
|
// apiUrl: 'http://support-portal.shyshkin.net:5000',
|
||||||
// apiUrl: 'http://dockerapp.shyshkin.net:8080',
|
// apiUrl: 'http://dockerapp.shyshkin.net:8080',
|
||||||
apiUrl: 'https://dockerapp.shyshkin.net',
|
apiUrl: 'https://dockerapp.shyshkin.net',
|
||||||
publicUrls: ['/user/login', '/user/register', '/user/*/image/**', '/user/image/**']
|
publicUrls: ['/user/login', '/user/register', '/user/*/profile-image', '/user/*/profile-image/**']
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
apiUrl: 'http://localhost:8080',
|
apiUrl: 'http://localhost:8080',
|
||||||
publicUrls: ['/user/login', '/user/register', '/user/*/image/**', '/user/image/**']
|
publicUrls: ['/user/login', '/user/register', '/user/*/profile-image', '/user/*/profile-image/**']
|
||||||
};
|
};
|
||||||
|
|||||||
@ -10,7 +10,7 @@ export const environment = {
|
|||||||
// apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com',
|
// apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com',
|
||||||
// apiUrl: 'http://support-portal.shyshkin.net:5000',
|
// apiUrl: 'http://support-portal.shyshkin.net:5000',
|
||||||
apiUrl: 'http://localhost:8080',
|
apiUrl: 'http://localhost:8080',
|
||||||
publicUrls: ['/user/login', '/user/register', '/user/*/image/**', '/user/image/**']
|
publicUrls: ['/user/login', '/user/register', '/user/*/profile-image', '/user/*/profile-image/**']
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user