KI-AGENT: Terminpicker und Dokumentaufruf verbessert
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user