提交
This commit is contained in:
1 parent
47ef575524
commit
38383b35d9
92 files changed
+1051117
-37355
No files matched your search
@@ -11,8 +11,13 @@ export class BizError extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* FastAPI 以 @router.get("/") + prefix 注册的集合根须带尾斜杠,否则 307 会丢 Authorization。
|
||||
* 发票夹路由是无尾斜杠的 /invoices、/invoice-ledgers、/invoice-wallets,切勿追加 `/`。
|
||||
* 与 web-admin/src/utils/http/bx.ts 保持一致。
|
||||
*/
|
||||
const BX_COLLECTION_ROOT =
|
||||
/^\/(reimburses|advances|payments|workflows|expense-items|invoices|invoice-wallets|invoice-ledgers)$/
|
||||
/^\/(reimburses|advances|payments|workflows|expense-items)$/
|
||||
|
||||
function normalizeBxUrl(url?: string): string | undefined {
|
||||
if (!url || url.endsWith('/')) return url
|
||||
|
||||
Reference in new issue
Block a user