feat: backend MVP (auth/rbac, catalog, orders, fulfillment, invoices) + specs + scaffolds

This commit is contained in:
Chengdong Zhang
2026-09-17 12:43:22 +08:00
commit dc9fd31c5e
96 changed files with 17550 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import { createApi } from "@vmall/shared";
export default defineNuxtPlugin(() => {
const config = useRuntimeConfig();
const api = createApi({
baseUrl: config.public.apiBase as string,
getToken: () => (import.meta.client ? localStorage.getItem("vmall.token") : null),
});
return { provide: { api } };
});