final update
This commit is contained in:
No files matched your search
@@ -2,8 +2,8 @@ import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { lookup } from 'mime-types'
|
||||
import { createError, setHeader, sendStream } from 'h3'
|
||||
|
||||
const FOLDER_PATH = '\\\\10.10.150.129\\Shared'
|
||||
const config = useRuntimeConfig()
|
||||
const FOLDER_PATH = config.public.folder_path;
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const rawName = event.context.params?.name as string | undefined
|
||||
|
||||
Reference in New Issue
Block a user