gatekeep ukvisajob search

This commit is contained in:
DaKheera47 2026-01-17 02:03:47 +00:00
parent f47f706c9c
commit e54db4d03d

View File

@ -37,7 +37,6 @@ function createBasicAuthGuard() {
function isPublicReadOnlyRoute(method: string, path: string): boolean {
const normalizedMethod = method.toUpperCase();
const normalizedPath = path.split('?')[0] || path;
if (normalizedMethod === 'POST' && normalizedPath === '/api/ukvisajobs/search') return true;
if (normalizedMethod === 'POST' && normalizedPath === '/api/visa-sponsors/search') return true;
return false;
}