dont log users id on transmission

This commit is contained in:
itsrubberduck
2026-02-13 18:44:34 +01:00
parent 4837e2ea1f
commit af2eed2d6e
3 changed files with 70 additions and 23 deletions

View File

@@ -1,23 +1,26 @@
import { defineEventHandler, getRequestURL } from 'h3'
import { requireUserSession } from '../utils/auth'
import {defineEventHandler, getRequestURL} from 'h3'
import {requireUserSession} from '../utils/auth'
export default defineEventHandler(async (event) => {
const url = getRequestURL(event)
if (!url.pathname.startsWith('/api/')) {
return
}
if (url.pathname.startsWith('/api/service/')) {
return
}
if (url.pathname.startsWith('/api/bridge/')) {
return
}
if (url.pathname === '/api/decision-flows/runtime') {
return
}
if (event.node.req.method === 'OPTIONS') {
return
}
await requireUserSession(event)
const url = getRequestURL(event)
if (!url.pathname.startsWith('/api/')) {
return
}
if (url.pathname.startsWith('/api/atc/say')) {
return
}
if (url.pathname.startsWith('/api/service/')) {
return
}
if (url.pathname.startsWith('/api/bridge/')) {
return
}
if (url.pathname === '/api/decision-flows/runtime') {
return
}
if (event.node.req.method === 'OPTIONS') {
return
}
await requireUserSession(event)
})