cineclub-site/front/plugins/api.ts

14 lines
257 B
TypeScript

import * as api from "~/composables/api"
export default defineNuxtPlugin(() => {
return {
provide: {
api: {
request: api.apiRequest,
get: api.apiGet,
post: api.apiPost,
patch: api.apiPost,
},
},
}
})