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,5 +1,5 @@
|
||||||
import { defineEventHandler } from 'h3'
|
import { defineEventHandler } from 'h3'
|
||||||
import { useFixtureIO } from '../../composables/useFixtureIO'
|
import { useFixtureIO } from '#imports'
|
||||||
|
|
||||||
export default defineEventHandler(() => {
|
export default defineEventHandler(() => {
|
||||||
// Export snapshot of in-memory state
|
// Export snapshot of in-memory state
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
import { defineEventHandler, readBody } from 'h3'
|
import { defineEventHandler, readBody } from "h3";
|
||||||
import { useFixtureIO, type AppSnapshot } from '../../composables/useFixtureIO'
|
import { useFixtureIO, type AppSnapshot } from "#imports";
|
||||||
|
|
||||||
export default defineEventHandler(async (event) => {
|
export default defineEventHandler(async (event) => {
|
||||||
const body = (await readBody(event)) as AppSnapshot
|
const body = (await readBody(event)) as AppSnapshot;
|
||||||
const { importAll } = useFixtureIO()
|
const { importAll } = useFixtureIO();
|
||||||
importAll(body)
|
importAll(body);
|
||||||
return { ok: true }
|
return { ok: true };
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue