Files
rustfs-console/server/api/[...].ts
T
overtrue 6ab024be1c style: format code with Prettier
- Auto-format all files to comply with Prettier rules
- Fix code style issues in 545 files
2025-11-01 00:03:01 +08:00

12 lines
314 B
TypeScript

import { joinURL } from 'ufo'
export default defineEventHandler(async event => {
const proxyUrl = useRuntimeConfig().public.api.baseURL
const target = joinURL(proxyUrl, event.path.replace('/rustfs', '/rustfs/admin/v3'))
console.log('Proxying request to:', target)
return proxyRequest(event, target)
})