trying to make api-docs public
This commit is contained in:
parent
1210016142
commit
28aa0abcec
@ -21,7 +21,7 @@ export class AuthGuard implements CanActivate {
|
|||||||
if (isPublic) return true;
|
if (isPublic) return true;
|
||||||
|
|
||||||
const request = context.switchToHttp().getRequest<Request>();
|
const request = context.switchToHttp().getRequest<Request>();
|
||||||
if (request.path.startsWith('/api-docs') || request.path.startsWith('/api-json')) {
|
if (request.path.startsWith('/api-docs')) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
const authHeader = request.headers['authorization'] as string | undefined;
|
const authHeader = request.headers['authorization'] as string | undefined;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user