server fix: import eventHandler
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { eventHandler } from 'h3'
|
||||
|
||||
export default eventHandler(() => {
|
||||
return [
|
||||
{
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { eventHandler } from 'h3'
|
||||
|
||||
export default eventHandler(() => {
|
||||
return [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { eventHandler } from 'h3'
|
||||
|
||||
export default eventHandler(async (event) => {
|
||||
const id = event.context.params?.id || ''
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { eventHandler } from 'h3'
|
||||
|
||||
export default eventHandler(async (event) => {
|
||||
const directoryPath = path.join(process.cwd(), 'media/files/music')
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { eventHandler } from 'h3'
|
||||
|
||||
export default eventHandler(() => {
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user