gatekeep ukvisajob search
This commit is contained in:
parent
f47f706c9c
commit
e54db4d03d
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user