KI-AGENT: Terminpicker und Dokumentaufruf verbessert

This commit is contained in:
2026-09-08 22:49:17 +02:00
parent 358e40d749
commit 15e21a97e2
10 changed files with 135 additions and 85 deletions

View File

@@ -84,10 +84,12 @@ export default fp(async (server: FastifyInstance) => {
const urlPath = req.url.split("?")[0]
const queryToken = (req.query as any)?.downloadToken
const isDownloadTokenRoute =
(urlPath.startsWith("/api/email/attachments/") && urlPath.endsWith("/download"))
|| urlPath.startsWith("/api/files/content/")
const downloadToken =
typeof queryToken === "string"
&& urlPath.startsWith("/api/email/attachments/")
&& urlPath.endsWith("/download")
&& isDownloadTokenRoute
? queryToken
: null