refactor: move composables/stores/plugins back to project root for Nuxt auto-imports
This commit is contained in:
parent
e1daaede27
commit
bc2babbe90
5 changed files with 8 additions and 10 deletions
|
|
@ -1,11 +1,9 @@
|
|||
import { defineEventHandler, readBody } from 'h3'
|
||||
import { useFixtureIO, type AppSnapshot } from '../../composables/useFixtureIO'
|
||||
import { defineEventHandler, readBody } from "h3";
|
||||
import { useFixtureIO, type AppSnapshot } from "#imports";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const body = (await readBody(event)) as AppSnapshot
|
||||
const { importAll } = useFixtureIO()
|
||||
importAll(body)
|
||||
return { ok: true }
|
||||
})
|
||||
|
||||
|
||||
const body = (await readBody(event)) as AppSnapshot;
|
||||
const { importAll } = useFixtureIO();
|
||||
importAll(body);
|
||||
return { ok: true };
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue