From: Ruben Beltran del Rio Date: Sun, 12 Dec 2021 19:53:27 +0000 (+0100) Subject: Don't use slash between the paths X-Git-Url: https://git.r.bdr.sh/rbdr/generador-de-insultos/commitdiff_plain/73d2a4923358fd9774b18a458669697cfb0b958e?ds=sidebyside;hp=e1c0668b66045505a69a227a7e2a175cb8ab35dd Don't use slash between the paths --- diff --git a/src/lib/stores/insults.js b/src/lib/stores/insults.js index d8bd340..d4ee592 100644 --- a/src/lib/stores/insults.js +++ b/src/lib/stores/insults.js @@ -6,8 +6,8 @@ const internals = { kVersion: '1:', // in case we need to force a re-fetch kHost: import.meta.env.VITE_PUBLIC_BASE_PATH || 'http://localhost:3000', kDataPrefix: '/data/', - kVerbsPath: '/verbs.json', - kNounsPath: '/nouns.json', + kVerbsPath: 'verbs.json', + kNounsPath: 'nouns.json', async get(path) {