cineclub-site/front/plugins/api.ts

15 lines
257 B
TypeScript
Raw Normal View History

2022-04-09 00:40:19 +02:00
import * as api from "~/composables/api"
export default defineNuxtPlugin(() => {
return {
provide: {
api: {
request: api.apiRequest,
get: api.apiGet,
post: api.apiPost,
patch: api.apiPost,
},
},
}
})