import {Plugin} from '@nuxt/types' import {$rest} from "~/services/queries/rest"; const restPlugin: Plugin = (ctx) => { //Déclare un nouvel accesseur de service via le context Nuxt ctx.$rest = $rest(ctx.$http) } export default restPlugin