diff --git a/src/routes/+layout.js b/src/routes/+layout.js new file mode 100644 index 0000000..8383188 --- /dev/null +++ b/src/routes/+layout.js @@ -0,0 +1,2 @@ +export const prerender = true; +export const ssr = true; \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 1a58a26..607adbb 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,6 +1,4 @@ diff --git a/src/routes/api/corsi/[slug]/+server.js b/src/routes/api/corso/[slug]/+server.js similarity index 100% rename from src/routes/api/corsi/[slug]/+server.js rename to src/routes/api/corso/[slug]/+server.js diff --git a/src/routes/api/gruppi/[slug]/+server.js b/src/routes/api/gruppo/[slug]/+server.js similarity index 100% rename from src/routes/api/gruppi/[slug]/+server.js rename to src/routes/api/gruppo/[slug]/+server.js diff --git a/src/routes/corsi/[slug]/+page.js b/src/routes/corsi/[slug]/+page.js index 5792578..50d1253 100644 --- a/src/routes/corsi/[slug]/+page.js +++ b/src/routes/corsi/[slug]/+page.js @@ -2,7 +2,7 @@ import { base } from '$app/paths'; export async function load({ params, fetch }) { const { slug } = params; - const response = await fetch(`${base}/api/corsi/${slug}`); + const response = await fetch(`${base}/api/corso/${slug}`); const corso = await response.json(); return { corso }; diff --git a/src/routes/gruppi/[slug]/+page.js b/src/routes/gruppi/[slug]/+page.js index d9a8f55..ca15d6b 100644 --- a/src/routes/gruppi/[slug]/+page.js +++ b/src/routes/gruppi/[slug]/+page.js @@ -2,7 +2,7 @@ import { base } from '$app/paths'; export async function load({ params, fetch }) { const { slug } = params; - const response = await fetch(`${base}/api/gruppi/${slug}`); + const response = await fetch(`${base}/api/gruppo/${slug}`); const gruppo = await response.json(); return { gruppo };