feat(frontend): add dev mock API plugin

Adds a Vite dev-only middleware that intercepts /api/v1/* requests
and returns mock responses for auth, users, files, tags, categories,
and pools. Login with any username and password "password".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-05 03:26:03 +03:00
parent 7770960cbf
commit 9e341a0fc6
2 changed files with 135 additions and 1 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';
import { mockApiPlugin } from './vite-mock-plugin';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()]
plugins: [tailwindcss(), sveltekit(), mockApiPlugin()]
});