fix(api): remove authorization checks (#59680)

This commit is contained in:
Mrugesh Mohapatra
2025-04-11 22:21:00 +05:30
committed by GitHub
parent f07aa3016a
commit a78f40f7e6
2 changed files with 0 additions and 8 deletions
@@ -13,9 +13,7 @@ import { getUserById as _getUserById } from '../utils/user-stats';
const authRE = /^\/auth\//;
const confirmEmailRE = /^\/confirm-email$/;
const newsShortLinksRE = /^\/n\/|^\/p\//;
const publicApiUserRE = /^\/api\/users\/get-public-profile$/;
const publicUserRE = /^\/users\/get-public-profile$/;
const publicApiUsernameRE = /^\/api\/users\/exists$/;
const publicUsernameRE = /^\/users\/exists$/;
const resubscribeRE = /^\/resubscribe\//;
const showCertRE = /^\/certificate\/showCert\//;
@@ -34,9 +32,7 @@ const _pathsAllowedREs = [
authRE,
confirmEmailRE,
newsShortLinksRE,
publicApiUserRE,
publicUserRE,
publicApiUsernameRE,
publicUsernameRE,
resubscribeRE,
showCertRE,
@@ -39,9 +39,7 @@ describe('request-authorization', () => {
const authRE = /^\/auth\//;
const confirmEmailRE = /^\/confirm-email$/;
const newsShortLinksRE = /^\/n\/|^\/p\//;
const publicApiUserRE = /^\/api\/users\/get-public-profile$/;
const publicUserRE = /^\/users\/get-public-profile$/;
const publicApiUsernameRE = /^\/api\/users\/exists$/;
const publicUsernameRE = /^\/users\/exists$/;
const resubscribeRE = /^\/resubscribe\//;
const showCertRE = /^\/certificate\/showCert\//;
@@ -55,9 +53,7 @@ describe('request-authorization', () => {
authRE,
confirmEmailRE,
newsShortLinksRE,
publicApiUserRE,
publicUserRE,
publicApiUsernameRE,
publicUsernameRE,
resubscribeRE,
showCertRE,