UNPKG

baked-recipe-admin

Version:

Baked is an opinionated framework for .NET in backend and Nuxt in frontend. This is a recipe package that brings together all the components one needs for an Admin UI.

16 lines (13 loc) 241 B
import { defineNuxtPlugin } from "#app"; import { Mutex } from "async-mutex"; export default defineNuxtPlugin({ name: "mutex", setup() { const mutex = new Mutex(); return { provide: { mutex } }; } });