u
This commit is contained in:
@@ -39,13 +39,16 @@ const OMITTED_ROUTES = new Set([
|
||||
'POST /serper/image',
|
||||
'POST /serper/images',
|
||||
'GET /shipment/{id}/file/{fileId}',
|
||||
'GET /smallthumb/{fullHash}',
|
||||
'GET /thumb/{fullHash}',
|
||||
'GET /v1/category',
|
||||
'GET /v1/cimage',
|
||||
'GET /v1/client',
|
||||
'GET /v1/customer',
|
||||
'GET /v1/customergroup',
|
||||
'GET /v1/deletedentity',
|
||||
'GET /v1/init',
|
||||
'POST /v1/order',
|
||||
'GET /v1/pimage',
|
||||
'GET /v1/product',
|
||||
]);
|
||||
@@ -81,6 +84,27 @@ function isRouteOmitted(method, apiPath) {
|
||||
if (apiPath === '/auth' || apiPath.startsWith('/auth/')) {
|
||||
return true;
|
||||
}
|
||||
if (apiPath === '/agent' || apiPath.startsWith('/agent/')) {
|
||||
return true;
|
||||
}
|
||||
if (apiPath === '/agentprinter' || apiPath.startsWith('/agentprinter/')) {
|
||||
return true;
|
||||
}
|
||||
if (apiPath === '/printer' || apiPath.startsWith('/printer/')) {
|
||||
return true;
|
||||
}
|
||||
if (apiPath === '/printeragent' || apiPath.startsWith('/printeragent/')) {
|
||||
return true;
|
||||
}
|
||||
if (apiPath === '/printerjob' || apiPath.startsWith('/printerjob/')) {
|
||||
return true;
|
||||
}
|
||||
if (apiPath === '/smallthumb' || apiPath.startsWith('/smallthumb/')) {
|
||||
return true;
|
||||
}
|
||||
if (apiPath === '/v1' || apiPath.startsWith('/v1/')) {
|
||||
return true;
|
||||
}
|
||||
return OMITTED_ROUTES.has(`${method.toUpperCase()} ${apiPath}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user