Skip to content

Commit

Permalink
modify routes names for api
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Ciminieri committed Sep 18, 2024
1 parent a60aed1 commit 3bb33b1
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/routes/+layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const prerender = true;
export const ssr = true;
2 changes: 0 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
export const prerender = true;
export const ssr = true;
import '../app.scss';
import Header from '$lib/components/Header.svelte';
</script>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/routes/corsi/[slug]/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
2 changes: 1 addition & 1 deletion src/routes/gruppi/[slug]/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 3bb33b1

Please sign in to comment.